优化
This commit is contained in:
@@ -388,6 +388,22 @@ export function approvePlatformUnifiedOrder(tenantId: string, orderId: string) {
|
||||
).then(unwrapApiResponse)
|
||||
}
|
||||
|
||||
export interface UnifiedOrderBatchApprovalResult {
|
||||
total: number
|
||||
successCount: number
|
||||
failureCount: number
|
||||
successOrderIds: Array<number | string>
|
||||
failedOrders: Array<{ orderId: number | string; code: string; message: string }>
|
||||
}
|
||||
|
||||
export function batchApprovePlatformUnifiedOrders(tenantId: string, orderIds: string[]) {
|
||||
return http.post<ApiEnvelope<UnifiedOrderBatchApprovalResult>, ApiEnvelope<UnifiedOrderBatchApprovalResult>>(
|
||||
'/platform/v1/orders/first-leg/batch-approve',
|
||||
{ orderIds },
|
||||
{ params: { tenantId } },
|
||||
).then(unwrapApiResponse)
|
||||
}
|
||||
|
||||
export function addPlatformUnifiedOrderNote(tenantId: string, orderId: string, content: string) {
|
||||
return http.post<ApiEnvelope<number | string>, ApiEnvelope<number | string>>(
|
||||
`${unifiedOrdersApiPath}/${orderId}/internal-notes`,
|
||||
|
||||
Reference in New Issue
Block a user