feat(system): 新增公告类型字段

为公告模块增加 category 字段,支持按类型筛选与展示,满足多场景公告分类需求。
This commit is contained in:
2026-02-10 20:25:07 +08:00
parent 432ed8adf8
commit 0d32dc67e9
4 changed files with 7 additions and 0 deletions

View File

@@ -16,4 +16,6 @@ public class NoticePageReqVO extends PageParam {
@Schema(description = "展示状态,参见 CommonStatusEnum 枚举类", example = "1")
private Integer status;
@Schema(description = "公告类型")
private String category;
}

View File

@@ -27,4 +27,6 @@ public class NoticeRespVO {
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
private LocalDateTime createTime;
@Schema(description = "公告类型")
private String category;
}

View File

@@ -29,4 +29,6 @@ public class NoticeSaveReqVO {
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Integer status;
@Schema(description = "公告类型")
private String category;
}

View File

@@ -44,4 +44,5 @@ public class NoticeDO extends BaseDO {
*/
private Integer status;
private String category;
}