Files
digital-psychology/docs/WAVE0/slice-specs/ecr-032.json
T
jackyu66gitandCursor b91806ba80 feat(ECR-026): OpsCMS ScheduledPublication 只读并 Closed
定时发布目录(ops_scheduled_publications),并加固 catalog 生成器。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 03:13:36 +08:00

66 lines
1.8 KiB
JSON

{
"ecr": "032",
"slug": "intervention-outcome",
"concept": "InterventionOutcome",
"list_method": "InterventionOutcomes",
"get_method": "InterventionOutcome",
"table": "intervention_outcomes",
"migration": "000033",
"route_group": "/crisis",
"route_resource": "interventions",
"perm_const": "PermCrisisRead",
"perm_code": "admin.crisis.read",
"seed_code": "demo_helpline_shown",
"register_fn": "registerInterventionOutcomes",
"test_name": "TestCrisisCareInterventions",
"row_type": "InterventionOutcomeRow",
"err_name": "ErrInterventionOutcomeNotFound",
"capability": "CrisisCare",
"bc": "Content_Safety",
"predecessor": "ECR-031",
"title": "CrisisCare · InterventionOutcome(只读薄切片)",
"non_goals": "干预写回 · 医疗诊断 · UGC · 真支付",
"columns": [
{
"name": "code",
"sql": "varchar(64) NOT NULL UNIQUE",
"go_name": "Code",
"go_type": "string",
"json": "code",
"seed": "demo_helpline_shown"
},
{
"name": "title",
"sql": "varchar(128) NOT NULL",
"go_name": "Title",
"go_type": "string",
"json": "title",
"seed": "示例展示热线结果"
},
{
"name": "outcome",
"sql": "varchar(32) NOT NULL CHECK (outcome IN ('helpline_shown','escalated','blocked'))",
"go_name": "Outcome",
"go_type": "string",
"json": "outcome",
"seed": "helpline_shown"
},
{
"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
}
]
}