feat(ECR-042): OpsCMS FeedSlot 薄写面

Admin POST/PUT 复用 admin.cms.write;C 端 GET /home/feed-slots;首页无 active 槽隐藏推荐区、失败回退展示;无新 migration。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-13 20:02:01 +08:00
co-authored by Cursor
parent 655141980a
commit 56f661748a
27 changed files with 773 additions and 25 deletions
+37
View File
@@ -521,6 +521,43 @@ export const adminApi = {
system: boolean
updated_at: string
}>('GET', `/cms/feed-slots/${id}`),
createFeedSlot: (body: {
code: string
title: string
slot_key: string
placement: string
active: boolean
}) =>
request<{
id: string
code: string
title: string
slot_key: string
placement: string
active: boolean
system: boolean
updated_at: string
}>('POST', '/cms/feed-slots', body),
updateFeedSlot: (
id: string,
body: {
code: string
title: string
slot_key: string
placement: string
active: boolean
},
) =>
request<{
id: string
code: string
title: string
slot_key: string
placement: string
active: boolean
system: boolean
updated_at: string
}>('PUT', `/cms/feed-slots/${id}`, body),
publications: () =>
request<{ items: Array<Record<string, unknown>> }>('GET', '/cms/publications'),
publication: (id: string) =>