- 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()动态模式
76 lines
1.7 KiB
JSON
76 lines
1.7 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "cms_site_config",
|
|
"title": "站点配置表",
|
|
"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": "config_group",
|
|
"title": "配置组(hero/footer/contact/seo)",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "config_key",
|
|
"title": "配置键",
|
|
"type": "str",
|
|
"length": 100,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "config_value",
|
|
"title": "配置值",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "config_type",
|
|
"title": "值类型(text/image/html/json)",
|
|
"type": "str",
|
|
"length": 32,
|
|
"default": "text"
|
|
},
|
|
{
|
|
"name": "sort_order",
|
|
"title": "排序号",
|
|
"type": "int",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_config_org_group",
|
|
"idxtype": "unique",
|
|
"idxfields": [
|
|
"org_id",
|
|
"config_group",
|
|
"config_key"
|
|
]
|
|
}
|
|
]
|
|
}
|