- 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()动态模式
117 lines
2.8 KiB
JSON
117 lines
2.8 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "cms_sections",
|
|
"title": "CMS栏目表",
|
|
"primary": [
|
|
"id"
|
|
]
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "组织ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "section_key",
|
|
"title": "栏目标识(hero/products/cases/news/cta/footer)",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"title": "栏目标题",
|
|
"type": "str",
|
|
"length": 255,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "subtitle",
|
|
"title": "栏目副标题",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "section_type",
|
|
"title": "展示类型(hero/cards/grid/list/banner/float)",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "content_type",
|
|
"title": "关联内容类型(product/case/news/空=静态)",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "sort_order",
|
|
"title": "排序号",
|
|
"type": "int",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "is_visible",
|
|
"title": "是否显示(1/0)",
|
|
"type": "str",
|
|
"length": 1,
|
|
"default": "1"
|
|
},
|
|
{
|
|
"name": "display_config",
|
|
"title": "展示配置JSON",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "style_config",
|
|
"title": "样式配置JSON",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "static_content",
|
|
"title": "静态内容(用于hero/cta等固定内容栏目)",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_sections_org_key",
|
|
"idxtype": "unique",
|
|
"idxfields": [
|
|
"org_id",
|
|
"section_key"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_sections_sort",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"sort_order"
|
|
]
|
|
}
|
|
],
|
|
"codes": []
|
|
}
|