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:
@@ -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'),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user