- 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()动态模式
115 lines
2.6 KiB
JSON
115 lines
2.6 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "dd_approvals",
|
|
"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": "业务类型(content_publish等)",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "biz_id",
|
|
"title": "业务数据ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"title": "审批标题",
|
|
"type": "str",
|
|
"length": 255,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "applicant_id",
|
|
"title": "申请人ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "approver_id",
|
|
"title": "审批人ID",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "dingtalk_instance_id",
|
|
"title": "钉钉审批实例ID",
|
|
"type": "str",
|
|
"length": 100
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态(pending/approved/rejected/cancelled)",
|
|
"type": "str",
|
|
"length": 32,
|
|
"default": "pending"
|
|
},
|
|
{
|
|
"name": "comment",
|
|
"title": "审批意见",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp"
|
|
},
|
|
{
|
|
"name": "completed_at",
|
|
"title": "完成时间",
|
|
"type": "datetime"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_approval_biz",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"biz_type",
|
|
"biz_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_approval_status",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"org_id",
|
|
"status"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_approval_applicant",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"applicant_id"
|
|
]
|
|
}
|
|
]
|
|
}
|