feat(media-supply): resource cache sync and order flow refinements
Add a resource cache sync entrypoint (RunMediaResourceSyncOnce) driven by the new scheduler job, and rework the backlink/sync worker around it. Tune the meijiequan client and slow the default backlink sync interval from 10m to 30m to reduce upstream pressure. Trim unused public/transport surface (handler + router + swagger) and simplify admin-web order management and ops-web media-supply views, dropping stale shared-types fields.
This commit is contained in:
@@ -87,8 +87,12 @@ export const opsMediaSupplyApi = {
|
||||
)
|
||||
},
|
||||
queueSync(modelId = 1) {
|
||||
return http.post<{ job_id: number }, { model_id: number }>('/media-supply/sync-jobs', {
|
||||
model_id: modelId,
|
||||
return http.post<
|
||||
{ id: number; job_key: string; status: string },
|
||||
{ reason: string; config_override: { model_id: number } }
|
||||
>('/scheduler/jobs/media_supply_cache_sync/run', {
|
||||
reason: 'ops 手动同步媒体资源缓存',
|
||||
config_override: { model_id: modelId },
|
||||
})
|
||||
},
|
||||
listWallets(params: OpsMediaSupplyWalletsParams) {
|
||||
|
||||
Reference in New Issue
Block a user