优化快手接单匹配
This commit is contained in:
@@ -94,13 +94,31 @@ export function saveAdminWorkProductRule(payload: {
|
||||
skuCode?: string
|
||||
productName?: string
|
||||
matchType?: string
|
||||
sellerId?: string
|
||||
itemId?: string
|
||||
relItemId?: string
|
||||
skuId?: string
|
||||
relSkuId?: string
|
||||
itemTitle?: string
|
||||
skuNick?: string
|
||||
itemTitleMatchType?: 'contains' | 'exact'
|
||||
skuNickMatchType?: 'contains' | 'exact'
|
||||
match?: {
|
||||
sellerId?: string
|
||||
itemId?: string
|
||||
relItemId?: string
|
||||
skuId?: string
|
||||
relSkuId?: string
|
||||
itemTitle?: string
|
||||
skuNick?: string
|
||||
itemTitleMatchType?: 'contains' | 'exact'
|
||||
skuNickMatchType?: 'contains' | 'exact'
|
||||
}
|
||||
categoryId?: number
|
||||
enabled?: boolean
|
||||
autoCreate?: boolean
|
||||
rewardAmount?: number
|
||||
unitPrice?: number
|
||||
requiredDepositAmount?: number
|
||||
depositThresholdAmount?: number
|
||||
sharingEnabled?: boolean
|
||||
sharingTotalQuantity?: number
|
||||
sharingUnitReward?: number
|
||||
@@ -117,6 +135,13 @@ export function deleteAdminWorkProductRule(ruleId: number) {
|
||||
return apiDelete<{ deleted: boolean }>(`/api/v1/admin/worker-platform/product-rules/${ruleId}`)
|
||||
}
|
||||
|
||||
export function reprocessAdminKuaishouWorkOrderMatches(limit = 100) {
|
||||
return apiPost<{ scannedCount: number; createdCount: number; skippedCount: number }>(
|
||||
'/api/v1/admin/worker-platform/orders/reprocess-matches',
|
||||
{ limit },
|
||||
)
|
||||
}
|
||||
|
||||
export function reviewAdminWorkerUser(
|
||||
workerId: number,
|
||||
payload: { status: string; reviewNote?: string; levelId?: number; workerType?: string },
|
||||
|
||||
Reference in New Issue
Block a user