cms/json/cms_sections_list.json
Hermes Agent 4495e9589b refactor: 从独立webapp重构为纯Sage模块
- cms/: Python包(合并原entcms+dingdingflow)
  - init.py: 791行,load_cms()注册所有CRUD+审批函数
  - dingtalk_client.py: 钉钉API客户端
- models/: 7个表定义JSON(5个CMS+2个DD)
- json/: 7个CRUD定义JSON
- wwwroot/: 管理后台CRUD页面和API(37个dspy)
- init/data.yaml: 模块初始数据(appcodes/appcodes_kv/分类/栏目/配置)
- scripts/load_path.py: RBAC权限配置
- pyproject.toml: pip-installable包定义
- 删除: app/, conf/, build.sh, entcms/, dingdingflow/等webapp文件
- 数据库访问统一为DBPools()+_get_dbname()动态模式
2026-06-15 11:06:11 +08:00

54 lines
1.9 KiB
JSON

{
"tblname": "cms_sections",
"alias": "cms_sections_list",
"title": "栏目管理",
"params": {
"sortby": [
"sort_order asc"
],
"logined_userorgid": "org_id",
"browserfields": {
"exclouded": [
"display_config",
"style_config",
"static_content"
],
"alters": {
"section_type": {
"uitype": "code",
"data": [
{"value": "hero", "text": "首屏Hero"},
{"value": "cards", "text": "卡片(1+N+X)"},
{"value": "grid", "text": "网格(案例)"},
{"value": "list", "text": "列表(新闻)"},
{"value": "banner", "text": "横幅(CTA)"},
{"value": "float", "text": "浮动入口"},
{"value": "footer", "text": "页脚"}
]
},
"content_type": {
"uitype": "code",
"data": [
{"value": "", "text": "(静态)"},
{"value": "product", "text": "产品"},
{"value": "case", "text": "案例"},
{"value": "news", "text": "新闻"}
]
},
"is_visible": {
"uitype": "code",
"data": [
{"value": "1", "text": "显示"},
{"value": "0", "text": "隐藏"}
]
}
}
},
"editable": {
"new_data_url": "{{entire_url('api/cms_sections_create.dspy')}}",
"update_data_url": "{{entire_url('api/cms_sections_update.dspy')}}",
"delete_data_url": "{{entire_url('api/cms_sections_delete.dspy')}}"
}
}
}