feat(分类属性): 实现分类属性管理功能
新增分类属性相关实体、DTO、仓库、服务及控制器 扩展文章服务以支持按属性查询文章 重构文章实体将typeid改为attributeid 添加按标题查询文章功能
This commit is contained in:
@@ -22,8 +22,8 @@ public class Article {
|
||||
private String content;
|
||||
|
||||
@NotNull(message = "类别id不能为空")
|
||||
@Column(name = "typeid")
|
||||
private Integer typeid;
|
||||
@Column(name = "attributeid")
|
||||
private Integer attributeid;
|
||||
|
||||
@Column(name = "img")
|
||||
private String img;
|
||||
@@ -42,6 +42,14 @@ public class Article {
|
||||
// Getters and Setters
|
||||
|
||||
|
||||
public Integer getAttributeid() {
|
||||
return attributeid;
|
||||
}
|
||||
|
||||
public void setAttributeid(Integer attributeid) {
|
||||
this.attributeid = attributeid;
|
||||
}
|
||||
|
||||
public Integer getArticleid() {
|
||||
return articleid;
|
||||
}
|
||||
@@ -66,14 +74,6 @@ public class Article {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public Integer getTypeid() {
|
||||
return typeid;
|
||||
}
|
||||
|
||||
public void setTypeid(Integer typeid) {
|
||||
this.typeid = typeid;
|
||||
}
|
||||
|
||||
public LocalDateTime getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user