feat(system): 新增公告类型字段
为公告模块增加 category 字段,支持按类型筛选与展示,满足多场景公告分类需求。
This commit is contained in:
@@ -16,4 +16,6 @@ public class NoticePageReqVO extends PageParam {
|
|||||||
@Schema(description = "展示状态,参见 CommonStatusEnum 枚举类", example = "1")
|
@Schema(description = "展示状态,参见 CommonStatusEnum 枚举类", example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
@Schema(description = "公告类型")
|
||||||
|
private String category;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,6 @@ public class NoticeRespVO {
|
|||||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
@Schema(description = "公告类型")
|
||||||
|
private String category;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,4 +29,6 @@ public class NoticeSaveReqVO {
|
|||||||
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
@Schema(description = "公告类型")
|
||||||
|
private String category;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,4 +44,5 @@ public class NoticeDO extends BaseDO {
|
|||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
private String category;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user