定时发布目录(ops_scheduled_publications),并加固 catalog 生成器。 Co-authored-by: Cursor <cursoragent@cursor.com>
66 lines
1.6 KiB
JSON
66 lines
1.6 KiB
JSON
{
|
|
"ecr": "033",
|
|
"slug": "handoff-case",
|
|
"concept": "HandoffCase",
|
|
"list_method": "HandoffCases",
|
|
"get_method": "HandoffCase",
|
|
"table": "ask_handoff_cases",
|
|
"migration": "000034",
|
|
"route_group": "/ask",
|
|
"route_resource": "handoffs",
|
|
"perm_const": "PermAskRead",
|
|
"perm_code": "admin.ask.read",
|
|
"seed_code": "demo_handoff",
|
|
"register_fn": "registerHandoffCases",
|
|
"test_name": "TestAskOpsHandoffs",
|
|
"row_type": "HandoffCaseRow",
|
|
"err_name": "ErrHandoffCaseNotFound",
|
|
"capability": "AskOperations",
|
|
"bc": "Ask_Ops",
|
|
"predecessor": "ECR-032",
|
|
"title": "AskOperations · HandoffCase(只读薄切片)",
|
|
"non_goals": "转人工写流 · 顾问执业 · UGC · 真支付",
|
|
"columns": [
|
|
{
|
|
"name": "code",
|
|
"sql": "varchar(64) NOT NULL UNIQUE",
|
|
"go_name": "Code",
|
|
"go_type": "string",
|
|
"json": "code",
|
|
"seed": "demo_handoff"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"sql": "varchar(128) NOT NULL",
|
|
"go_name": "Title",
|
|
"go_type": "string",
|
|
"json": "title",
|
|
"seed": "示例转接案"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"sql": "varchar(32) NOT NULL CHECK (status IN ('open','closed'))",
|
|
"go_name": "Status",
|
|
"go_type": "string",
|
|
"json": "status",
|
|
"seed": "closed"
|
|
},
|
|
{
|
|
"name": "active",
|
|
"sql": "boolean NOT NULL DEFAULT true",
|
|
"go_name": "Active",
|
|
"go_type": "bool",
|
|
"json": "active",
|
|
"seed": true
|
|
},
|
|
{
|
|
"name": "system",
|
|
"sql": "boolean NOT NULL DEFAULT false",
|
|
"go_name": "System",
|
|
"go_type": "bool",
|
|
"json": "system",
|
|
"seed": true
|
|
}
|
|
]
|
|
}
|