优化
This commit is contained in:
@@ -115,6 +115,20 @@ export interface PlatformTenantOrderStatistics {
|
||||
asOf: string
|
||||
}
|
||||
|
||||
export interface PlatformOrderBatchReviewFailure {
|
||||
orderId: number | string
|
||||
code: string
|
||||
message: string
|
||||
}
|
||||
|
||||
export interface PlatformOrderBatchReviewResult {
|
||||
total: number
|
||||
successCount: number
|
||||
failureCount: number
|
||||
successOrderIds: Array<number | string>
|
||||
failedOrders: PlatformOrderBatchReviewFailure[]
|
||||
}
|
||||
|
||||
type PlatformFirstLegOrderPagePayload = Omit<PlatformFirstLegOrderPageResource, 'page' | 'size' | 'total' | 'pages'> & {
|
||||
page: number | string
|
||||
size: number | string
|
||||
@@ -176,6 +190,14 @@ export function approvePlatformFirstLegOrder(tenantId: string, orderId: string)
|
||||
return postData<void>(`/platform/v1/orders/first-leg/${orderId}/approve`, undefined, { tenantId })
|
||||
}
|
||||
|
||||
export function batchApprovePlatformFirstLegOrders(tenantId: string, orderIds: string[]) {
|
||||
return postData<PlatformOrderBatchReviewResult>(
|
||||
'/platform/v1/orders/first-leg/batch-approve',
|
||||
{ orderIds },
|
||||
{ tenantId },
|
||||
)
|
||||
}
|
||||
|
||||
export function acceptPlatformFirstLegOrder(tenantId: string, orderId: string) {
|
||||
return postData<void>(`/platform/v1/orders/first-leg/${orderId}/accept`, undefined, { tenantId })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user