关闭旧商品匹配默认回退

This commit is contained in:
yml2213
2026-08-18 13:50:56 +08:00
parent 79990066f0
commit c2305d419e
10 changed files with 186 additions and 25 deletions
@@ -14,6 +14,7 @@ import type {
WorkerFinanceConfig,
WorkerFinanceRequest,
WorkerPlatformNotificationConfig,
WorkerProductMatchConfig,
WorkerLevel,
WorkerListResponse,
WorkerUser,
@@ -168,6 +169,17 @@ export function deleteAdminWorkProductRuleMapping(mappingId: number) {
)
}
export function fetchAdminWorkerProductMatchConfig() {
return apiGet<WorkerProductMatchConfig>('/api/v1/admin/worker-platform/product-match-config')
}
export function saveAdminWorkerProductMatchConfig(payload: WorkerProductMatchConfig) {
return apiPost<WorkerProductMatchConfig>(
'/api/v1/admin/worker-platform/product-match-config',
payload,
)
}
export function fetchAdminKuaishouMatchSources(limit = 100) {
return apiGet<{ items: KuaishouMatchSource[] }>(
'/api/v1/admin/worker-platform/product-match-sources',