feat(cms): 新增案例分类相关字段及查询参数

- 在 CmsCase 实体中新增 categoryId 和 categoryName 字段
- categoryId 关联 cms_navigation.navigation_id,model 为 case
- categoryName 为冗余存储,便于列表展示
- 在 CmsCaseParam 新增 categoryId 查询参数,支持按分类筛选案例
This commit is contained in:
2026-07-23 15:42:14 +08:00
parent 19e6035930
commit 319538a86e
2 changed files with 10 additions and 0 deletions

View File

@@ -67,6 +67,12 @@ public class CmsCase implements Serializable {
@TableLogic
private Integer deleted;
@Schema(description = "案例分类ID关联 cms_navigation.navigation_idmodel=case")
private Integer categoryId;
@Schema(description = "案例分类名称(冗余存储,便于列表展示)")
private String categoryName;
@Schema(description = "租户id")
private Integer tenantId;

View File

@@ -34,4 +34,8 @@ public class CmsCaseParam extends BaseParam {
@Schema(description = "状态: 1已发布 0已下线")
@QueryField(type = QueryType.EQ)
private Integer status;
@Schema(description = "案例分类ID关联 cms_navigation.navigation_idmodel=case")
@QueryField(type = QueryType.EQ)
private Integer categoryId;
}