This commit is contained in:
2026-08-26 15:48:34 +08:00
parent d03f7b3f5d
commit fac3153472
20 changed files with 917 additions and 23 deletions
@@ -12,3 +12,7 @@ export async function createOneClickDropshipOutbound(customerId: string, payload
const response = await overseasHttp.post<ApiEnvelope<OutboundRow>, ApiEnvelope<OutboundRow>>('/platform/v1/last-leg/outbound-orders/one-click-dropship', payload, { params: { customerId } })
return unwrapApiResponse(response)
}
export async function cancelOutbound(outboundNo: string, reason: string, customerId?: string) {
const response = await overseasHttp.post<ApiEnvelope<null>, ApiEnvelope<null>>(`/platform/v1/last-leg/outbound-orders/${encodeURIComponent(outboundNo)}/cancel`, { reason }, { params: customerId ? { customerId } : undefined })
return unwrapApiResponse(response)
}