feat(ECR-041): OpsCMS Banner 薄写面(Write-Wave 首刀)

Admin POST/PUT + admin.cms.write/审计;C 端 GET /home/banners;首页投影回退静态 homeFeeds;migration 000051;不碰 FeedSlot/支付/UGC。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-13 19:55:27 +08:00
co-authored by Cursor
parent ad45d17dff
commit 9707b72808
35 changed files with 1203 additions and 29 deletions
+45
View File
@@ -452,6 +452,51 @@ export const adminApi = {
system: boolean
updated_at: string
}>('GET', `/cms/banners/${id}`),
createBanner: (body: {
code: string
title: string
placement: string
image_url?: string | null
link_path?: string | null
sort_order: number
active: boolean
}) =>
request<{
id: string
code: string
title: string
placement: string
image_url?: string
link_path?: string
sort_order: number
active: boolean
system: boolean
updated_at: string
}>('POST', '/cms/banners', body),
updateBanner: (
id: string,
body: {
code: string
title: string
placement: string
image_url?: string | null
link_path?: string | null
sort_order: number
active: boolean
},
) =>
request<{
id: string
code: string
title: string
placement: string
image_url?: string
link_path?: string
sort_order: number
active: boolean
system: boolean
updated_at: string
}>('PUT', `/cms/banners/${id}`, body),
feedSlots: () =>
request<{
items: Array<{