定时发布目录(ops_scheduled_publications),并加固 catalog 生成器。 Co-authored-by: Cursor <cursoragent@cursor.com>
74 lines
1.9 KiB
JSON
74 lines
1.9 KiB
JSON
{
|
|
"ecr": "026",
|
|
"slug": "scheduled-publication",
|
|
"concept": "ScheduledPublication",
|
|
"list_method": "ScheduledPublications",
|
|
"get_method": "ScheduledPublication",
|
|
"table": "ops_scheduled_publications",
|
|
"migration": "000027",
|
|
"route_group": "/cms",
|
|
"route_resource": "publications",
|
|
"perm_const": "PermCMSRead",
|
|
"perm_code": "admin.cms.read",
|
|
"seed_code": "home_banner_week",
|
|
"register_fn": "registerCMSPublications",
|
|
"test_name": "TestOpsCMSPublications",
|
|
"row_type": "ScheduledPublicationRow",
|
|
"err_name": "ErrScheduledPublicationNotFound",
|
|
"capability": "OpsCMS",
|
|
"bc": "Ops_CMS_NoUGC",
|
|
"predecessor": "ECR-025",
|
|
"title": "OpsCMS · ScheduledPublication(只读薄切片)",
|
|
"non_goals": "定时发布写操作 · UGC · 真支付 · Banner/FeedSlot 写",
|
|
"columns": [
|
|
{
|
|
"name": "code",
|
|
"sql": "varchar(64) NOT NULL UNIQUE",
|
|
"go_name": "Code",
|
|
"go_type": "string",
|
|
"json": "code",
|
|
"seed": "home_banner_week"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"sql": "varchar(128) NOT NULL",
|
|
"go_name": "Title",
|
|
"go_type": "string",
|
|
"json": "title",
|
|
"seed": "首页横幅周排期占位"
|
|
},
|
|
{
|
|
"name": "target_kind",
|
|
"sql": "varchar(32) NOT NULL CHECK (target_kind IN ('banner','feed_slot'))",
|
|
"go_name": "TargetKind",
|
|
"go_type": "string",
|
|
"json": "target_kind",
|
|
"seed": "banner"
|
|
},
|
|
{
|
|
"name": "target_code",
|
|
"sql": "varchar(64) NOT NULL",
|
|
"go_name": "TargetCode",
|
|
"go_type": "string",
|
|
"json": "target_code",
|
|
"seed": "home_promo"
|
|
},
|
|
{
|
|
"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
|
|
}
|
|
]
|
|
}
|