- 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()动态模式
86 lines
1.9 KiB
JSON
86 lines
1.9 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "dd_approval_configs",
|
|
"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": "biz_type",
|
|
"title": "业务类型",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "biz_type_title",
|
|
"title": "业务类型名称",
|
|
"type": "str",
|
|
"length": 100
|
|
},
|
|
{
|
|
"name": "process_code",
|
|
"title": "钉钉审批模板编码",
|
|
"type": "str",
|
|
"length": 100
|
|
},
|
|
{
|
|
"name": "agent_id",
|
|
"title": "钉钉应用AgentId",
|
|
"type": "str",
|
|
"length": 100
|
|
},
|
|
{
|
|
"name": "form_config",
|
|
"title": "表单字段配置JSON",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "is_active",
|
|
"title": "是否启用(1/0)",
|
|
"type": "str",
|
|
"length": 1,
|
|
"default": "1"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_apvcfg_org_type",
|
|
"idxtype": "unique",
|
|
"idxfields": [
|
|
"org_id",
|
|
"biz_type"
|
|
]
|
|
}
|
|
],
|
|
"codes": []
|
|
}
|