feat(cms): 新增案例分类相关字段及查询参数
- 在 CmsCase 实体中新增 categoryId 和 categoryName 字段 - categoryId 关联 cms_navigation.navigation_id,model 为 case - categoryName 为冗余存储,便于列表展示 - 在 CmsCaseParam 新增 categoryId 查询参数,支持按分类筛选案例
This commit is contained in:
@@ -67,6 +67,12 @@ public class CmsCase implements Serializable {
|
|||||||
@TableLogic
|
@TableLogic
|
||||||
private Integer deleted;
|
private Integer deleted;
|
||||||
|
|
||||||
|
@Schema(description = "案例分类ID(关联 cms_navigation.navigation_id,model=case)")
|
||||||
|
private Integer categoryId;
|
||||||
|
|
||||||
|
@Schema(description = "案例分类名称(冗余存储,便于列表展示)")
|
||||||
|
private String categoryName;
|
||||||
|
|
||||||
@Schema(description = "租户id")
|
@Schema(description = "租户id")
|
||||||
private Integer tenantId;
|
private Integer tenantId;
|
||||||
|
|
||||||
|
|||||||
@@ -34,4 +34,8 @@ public class CmsCaseParam extends BaseParam {
|
|||||||
@Schema(description = "状态: 1已发布 0已下线")
|
@Schema(description = "状态: 1已发布 0已下线")
|
||||||
@QueryField(type = QueryType.EQ)
|
@QueryField(type = QueryType.EQ)
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
@Schema(description = "案例分类ID(关联 cms_navigation.navigation_id,model=case)")
|
||||||
|
@QueryField(type = QueryType.EQ)
|
||||||
|
private Integer categoryId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user