定时发布目录(ops_scheduled_publications),并加固 catalog 生成器。 Co-authored-by: Cursor <cursoragent@cursor.com>
66 lines
1.7 KiB
JSON
66 lines
1.7 KiB
JSON
{
|
|
"ecr": "030",
|
|
"slug": "moderation-case",
|
|
"concept": "ModerationCase",
|
|
"list_method": "ModerationCases",
|
|
"get_method": "ModerationCase",
|
|
"table": "moderation_cases",
|
|
"migration": "000031",
|
|
"route_group": "/content-safety",
|
|
"route_resource": "cases",
|
|
"perm_const": "PermContentSafetyRead",
|
|
"perm_code": "admin.content_safety.read",
|
|
"seed_code": "demo_case_seed",
|
|
"register_fn": "registerModerationCases",
|
|
"test_name": "TestContentSafetyModerationCases",
|
|
"row_type": "ModerationCaseRow",
|
|
"err_name": "ErrModerationCaseNotFound",
|
|
"capability": "ContentSafety",
|
|
"bc": "Content_Safety",
|
|
"predecessor": "ECR-029",
|
|
"title": "ContentSafety · ModerationCase(只读薄切片)",
|
|
"non_goals": "审核写回 · 真 NLP 厂商 · UGC · 真支付",
|
|
"columns": [
|
|
{
|
|
"name": "code",
|
|
"sql": "varchar(64) NOT NULL UNIQUE",
|
|
"go_name": "Code",
|
|
"go_type": "string",
|
|
"json": "code",
|
|
"seed": "demo_case_seed"
|
|
},
|
|
{
|
|
"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
|
|
}
|
|
]
|
|
}
|