dingdingflow/models/dda_approval_configs.json
ymq a3f2ea8616 feat: 钉钉审批工作流模块从 cms 独立
- 表名统一 dda_ 前缀(dda_approvals/dda_approval_configs),跨应用复用防冲突
- 解耦关键改动:原回调硬编码 biz_type=='content_publish' + 写 cms_content 表,
  改为 register_biz_handler(biz_type, handler) 钩子分派,模块内零业务表引用
- 含 models(四段式)/json(CRUD)/9个dspy端点/load_path(any回调+9 logined)/i18n四语言
- README 覆盖凭据配置、审批模板配置、回调地址、审批节点接法(产线步骤)
2026-08-25 18:15:52 +08:00

86 lines
1.9 KiB
JSON

{
"summary": [
{
"name": "dda_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": []
}