feat(分类属性): 实现分类属性管理功能
新增分类属性相关实体、DTO、仓库、服务及控制器 扩展文章服务以支持按属性查询文章 重构文章实体将typeid改为attributeid 添加按标题查询文章功能
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.qf.myafterprojecy.pojo.dto;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
public class CategoryAttributeDto {
|
||||
|
||||
@NotNull(message = "分类ID不能为空")
|
||||
private Integer categoryid;
|
||||
|
||||
@NotBlank(message = "属性名称不能为空")
|
||||
private String attributename;
|
||||
|
||||
// Getters and Setters
|
||||
public Integer getCategoryid() {
|
||||
return categoryid;
|
||||
}
|
||||
|
||||
public void setCategoryid(Integer categoryid) {
|
||||
this.categoryid = categoryid;
|
||||
}
|
||||
|
||||
public String getAttributename() {
|
||||
return attributename;
|
||||
}
|
||||
|
||||
public void setAttributename(String attributename) {
|
||||
this.attributename = attributename;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user