- 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()动态模式
71 lines
2.3 KiB
JSON
71 lines
2.3 KiB
JSON
{
|
|
"tblname": "cms_content",
|
|
"alias": "cms_content_list",
|
|
"title": "内容管理",
|
|
"params": {
|
|
"sortby": [
|
|
"sort_order asc",
|
|
"created_at desc"
|
|
],
|
|
"logined_userorgid": "org_id",
|
|
"data_filter": {
|
|
"AND": [
|
|
{
|
|
"field": "title",
|
|
"op": "LIKE",
|
|
"var": "title"
|
|
},
|
|
{
|
|
"field": "content_type",
|
|
"op": "=",
|
|
"var": "content_type"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"op": "=",
|
|
"var": "status"
|
|
}
|
|
]
|
|
},
|
|
"browserfields": {
|
|
"exclouded": [
|
|
"body",
|
|
"extra_json"
|
|
],
|
|
"alters": {
|
|
"content_type": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "banner", "text": "Banner"},
|
|
{"value": "product", "text": "产品"},
|
|
{"value": "case", "text": "案例"},
|
|
{"value": "news", "text": "新闻"}
|
|
]
|
|
},
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "draft", "text": "草稿"},
|
|
{"value": "pending", "text": "待审批"},
|
|
{"value": "approved", "text": "已审批"},
|
|
{"value": "published", "text": "已发布"},
|
|
{"value": "archived", "text": "已归档"}
|
|
]
|
|
},
|
|
"category_id": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/category_options.dspy')}}",
|
|
"data_field": "options",
|
|
"textField": "text",
|
|
"valueField": "value"
|
|
}
|
|
}
|
|
},
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('api/cms_content_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('api/cms_content_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('api/cms_content_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|