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
+13
View File
@@ -278,6 +278,19 @@ export function createClient(opts: CreateClientOptions) {
enabled?: boolean
}>
}>('/api/v1/home/tools'),
getHomeBanners: (placement = 'home') =>
call<{
items: Array<{
id: string
code: string
title: string
placement: string
image_url?: string
link_path?: string
sort_order: number
active: boolean
}>
}>(`/api/v1/home/banners?placement=${encodeURIComponent(placement)}`),
getHomeDailyTips: () => call<HomeDailyTips>('/api/v1/home/daily-tips'),
}
}