feat(ECR-026): OpsCMS ScheduledPublication 只读并 Closed
定时发布目录(ops_scheduled_publications),并加固 catalog 生成器。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"ecr": "029",
|
||||
"slug": "block-policy",
|
||||
"concept": "BlockPolicy",
|
||||
"list_method": "BlockPolicies",
|
||||
"get_method": "BlockPolicy",
|
||||
"table": "block_policies",
|
||||
"migration": "000030",
|
||||
"route_group": "/content-safety",
|
||||
"route_resource": "block-policies",
|
||||
"perm_const": "PermContentSafetyRead",
|
||||
"perm_code": "admin.content_safety.read",
|
||||
"seed_code": "block_spam_link",
|
||||
"register_fn": "registerBlockPolicies",
|
||||
"test_name": "TestContentSafetyBlockPolicies",
|
||||
"row_type": "BlockPolicyRow",
|
||||
"err_name": "ErrBlockPolicyNotFound",
|
||||
"capability": "ContentSafety",
|
||||
"bc": "Content_Safety",
|
||||
"predecessor": "ECR-028",
|
||||
"title": "ContentSafety · BlockPolicy(只读薄切片)",
|
||||
"non_goals": "策略写发布 · 用户侧硬拦截上线 · UGC · 真支付",
|
||||
"columns": [
|
||||
{
|
||||
"name": "code",
|
||||
"sql": "varchar(64) NOT NULL UNIQUE",
|
||||
"go_name": "Code",
|
||||
"go_type": "string",
|
||||
"json": "code",
|
||||
"seed": "block_spam_link"
|
||||
},
|
||||
{
|
||||
"name": "title",
|
||||
"sql": "varchar(128) NOT NULL",
|
||||
"go_name": "Title",
|
||||
"go_type": "string",
|
||||
"json": "title",
|
||||
"seed": "外链垃圾拦截策略"
|
||||
},
|
||||
{
|
||||
"name": "action",
|
||||
"sql": "varchar(32) NOT NULL CHECK (action IN ('block','mask','review'))",
|
||||
"go_name": "Action",
|
||||
"go_type": "string",
|
||||
"json": "action",
|
||||
"seed": "block"
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user