编写mvc基础代码添加ResponseMessage编写Message关键字
This commit is contained in:
82
src/main/java/com/qf/myafterprojecy/pojo/dto/ArticleDto.java
Normal file
82
src/main/java/com/qf/myafterprojecy/pojo/dto/ArticleDto.java
Normal file
@@ -0,0 +1,82 @@
|
||||
package com.qf.myafterprojecy.pojo.dto;
|
||||
|
||||
import javax.persistence.Column;
|
||||
|
||||
public class ArticleDto {
|
||||
private Integer articleid;
|
||||
private String title;
|
||||
private String content;
|
||||
private String img;
|
||||
private Integer typeid;
|
||||
private String publisher_at;
|
||||
private String created_at;
|
||||
|
||||
public Integer getArticleid() {
|
||||
return articleid;
|
||||
}
|
||||
|
||||
public void setArticleid(Integer articleid) {
|
||||
this.articleid = articleid;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getImg() {
|
||||
return img;
|
||||
}
|
||||
|
||||
public void setImg(String img) {
|
||||
this.img = img;
|
||||
}
|
||||
|
||||
public Integer getTypeid() {
|
||||
return typeid;
|
||||
}
|
||||
|
||||
public void setTypeid(Integer typeid) {
|
||||
this.typeid = typeid;
|
||||
}
|
||||
|
||||
public String getPublisher_at() {
|
||||
return publisher_at;
|
||||
}
|
||||
|
||||
public void setPublisher_at(String publisher_at) {
|
||||
this.publisher_at = publisher_at;
|
||||
}
|
||||
|
||||
public String getCreated_at() {
|
||||
return created_at;
|
||||
}
|
||||
|
||||
public void setCreated_at(String created_at) {
|
||||
this.created_at = created_at;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ArticleDto{" +
|
||||
"articleid=" + articleid +
|
||||
", title='" + title + '\'' +
|
||||
", content='" + content + '\'' +
|
||||
", img='" + img + '\'' +
|
||||
", typeid=" + typeid +
|
||||
", publisher_at='" + publisher_at + '\'' +
|
||||
", created_at='" + created_at + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user