重构Article模块 新增Message模块 优化安全配置
This commit is contained in:
@@ -1,21 +1,32 @@
|
||||
package com.qf.myafterprojecy.pojo.dto;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Getter
|
||||
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;
|
||||
private Integer id;
|
||||
|
||||
public Integer getArticleid() {
|
||||
return articleid;
|
||||
@NotBlank(message = "标题不能为空")
|
||||
private String title;
|
||||
|
||||
@NotBlank(message = "内容不能为空")
|
||||
private String content;
|
||||
|
||||
private String img;
|
||||
|
||||
private Integer status;
|
||||
|
||||
// Getters and Setters
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setArticleid(Integer articleid) {
|
||||
this.articleid = articleid;
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
@@ -34,6 +45,14 @@ public class ArticleDto {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getImg() {
|
||||
return img;
|
||||
}
|
||||
@@ -41,41 +60,4 @@ public class ArticleDto {
|
||||
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