- 新增5张CMS表的模型定义(models/)和CRUD定义(json/) - 新增17个.dspy API端点(create/update/delete + search) - 新增load_path.py RBAC权限注册脚本 - xls2crud生成5个CRUD管理页面目录 - 修复bricks默认灰色背景覆盖暗色主题(.site-root全局override) - user_menu.ui添加管理后台入口(按权限显示) - 初始化CMS种子数据(栏目/分类/内容)
36 lines
2.8 KiB
JSON
36 lines
2.8 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "cms_content",
|
|
"title": "CMS内容表",
|
|
"primary": ["id"]
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "ID", "type": "str", "length": 32, "nullable": "no", "comments": "主键ID"},
|
|
{"name": "org_id", "title": "组织ID", "type": "str", "length": 32, "nullable": "no", "comments": "所属组织"},
|
|
{"name": "content_type", "title": "内容类型", "type": "str", "length": 32, "nullable": "no", "comments": "news/product/case/banner"},
|
|
{"name": "category_id", "title": "分类ID", "type": "str", "length": 32, "nullable": "yes", "comments": "关联分类"},
|
|
{"name": "title", "title": "标题", "type": "str", "length": 200, "nullable": "no", "comments": "内容标题"},
|
|
{"name": "subtitle", "title": "副标题", "type": "str", "length": 200, "nullable": "yes", "comments": "副标题"},
|
|
{"name": "summary_text", "title": "摘要", "type": "text", "nullable": "yes", "comments": "内容摘要"},
|
|
{"name": "body", "title": "正文", "type": "text", "nullable": "yes", "comments": "正文内容(HTML)"},
|
|
{"name": "image_url", "title": "图片URL", "type": "str", "length": 500, "nullable": "yes", "comments": "封面图片URL"},
|
|
{"name": "tags", "title": "标签", "type": "str", "length": 500, "nullable": "yes", "comments": "标签,逗号分隔"},
|
|
{"name": "sort_order", "title": "排序", "type": "int", "nullable": "yes", "default": "0", "comments": "排序序号"},
|
|
{"name": "status", "title": "状态", "type": "str", "length": 20, "nullable": "no", "default": "draft", "comments": "draft/published/archived"},
|
|
{"name": "approval_id", "title": "审批ID", "type": "str", "length": 64, "nullable": "yes", "comments": "钉钉审批实例ID"},
|
|
{"name": "published_at", "title": "发布时间", "type": "timestamp", "nullable": "yes", "comments": "发布时间"},
|
|
{"name": "extra_json", "title": "扩展JSON", "type": "text", "nullable": "yes", "comments": "扩展属性JSON"},
|
|
{"name": "created_by", "title": "创建人", "type": "str", "length": 32, "nullable": "yes", "comments": "创建人ID"},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no", "comments": "创建时间"},
|
|
{"name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "no", "comments": "更新时间"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_content_type", "idxtype": "index", "idxfields": ["content_type"]},
|
|
{"name": "idx_content_status", "idxtype": "index", "idxfields": ["status"]},
|
|
{"name": "idx_content_org", "idxtype": "index", "idxfields": ["org_id"]},
|
|
{"name": "idx_content_category", "idxtype": "index", "idxfields": ["category_id"]}
|
|
]
|
|
}
|