feat(ECR-044): RhythmConfig 写面闭环并 Closed

复用 admin.explore.write、POST/PUT+审计、C端 GET /rhythm/configs、
H5 无 active 空态/失败回退;migration 000053。ExploreConfig Loop STOP,禁自动 ECR-045。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-13 20:43:08 +08:00
co-authored by Cursor
parent fcc7667ba3
commit 87b463b2bb
33 changed files with 1006 additions and 35 deletions
+39 -2
View File
@@ -636,9 +636,46 @@ export const adminApi = {
updated_at: string
}>('PUT', `/explore/star-configs/${id}`, body),
rhythmConfigs: () =>
request<{ items: Array<Record<string, unknown>> }>('GET', '/explore/rhythm-configs'),
request<{
items: Array<{
id: string
code: string
title: string
active: boolean
system: boolean
updated_at: string
}>
}>('GET', '/explore/rhythm-configs'),
rhythmConfig: (id: string) =>
request<Record<string, unknown>>('GET', `/explore/rhythm-configs/${id}`),
request<{
id: string
code: string
title: string
active: boolean
system: boolean
updated_at: string
}>('GET', `/explore/rhythm-configs/${id}`),
createRhythmConfig: (body: { code: string; title: string; active: boolean }) =>
request<{
id: string
code: string
title: string
active: boolean
system: boolean
updated_at: string
}>('POST', '/explore/rhythm-configs', body),
updateRhythmConfig: (
id: string,
body: { code: string; title: string; active: boolean },
) =>
request<{
id: string
code: string
title: string
active: boolean
system: boolean
updated_at: string
}>('PUT', `/explore/rhythm-configs/${id}`, body),
imageCardDecks: () =>
request<{ items: Array<Record<string, unknown>> }>('GET', '/explore/image-card-decks'),
imageCardDeck: (id: string) =>