fix(platform-fulfillment): 释放空闲连接并合并选号请求
This commit is contained in:
@@ -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) =>
|
||||
|
||||
@@ -2278,6 +2278,10 @@ export interface PlatformFulfillmentDetail {
|
||||
events: PlatformFulfillmentEvent[];
|
||||
}
|
||||
|
||||
export interface PlatformFulfillmentAllocationResult extends PlatformFulfillmentDetail {
|
||||
allocationQueued: boolean;
|
||||
}
|
||||
|
||||
export interface PlatformFulfillmentMapping {
|
||||
id: number;
|
||||
targetPlatform: string;
|
||||
|
||||
Reference in New Issue
Block a user