fix(platform-fulfillment): 释放空闲连接并合并选号请求

This commit is contained in:
yml
2026-11-21 17:35:34 +08:00
parent f74573a9c0
commit 7f7943a1e8
17 changed files with 690 additions and 74 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import api from './client';
import type {
PlatformFulfillmentAllocationResult,
PlatformFulfillmentDetail,
PlatformFulfillmentCollabSyncResult,
PlatformFulfillmentListResponse,
@@ -105,7 +106,7 @@ export const platformFulfillmentApi = {
groups: Array<{ executionStatus: string; saleMode: string; count: number }>;
}>(`/platform-fulfillment/mappings/${mappingId}/impact`),
allocate: (taskId: number) =>
api.post<PlatformFulfillmentDetail, PlatformFulfillmentDetail>(
api.post<PlatformFulfillmentAllocationResult, PlatformFulfillmentAllocationResult>(
`/platform-fulfillment/tasks/${taskId}/allocate`,
),
startBinding: (taskId: number) =>
+4
View File
@@ -2278,6 +2278,10 @@ export interface PlatformFulfillmentDetail {
events: PlatformFulfillmentEvent[];
}
export interface PlatformFulfillmentAllocationResult extends PlatformFulfillmentDetail {
allocationQueued: boolean;
}
export interface PlatformFulfillmentMapping {
id: number;
targetPlatform: string;