This commit is contained in:
2026-08-30 18:50:16 +08:00
parent 9d3862b215
commit 462d02efd5
4 changed files with 22 additions and 1 deletions
@@ -187,6 +187,10 @@ export async function getLastMileOrder(orderId: string) {
return unwrapApiResponse(response)
}
export async function downloadLastMileOrders(query: Partial<LastMileOrderQuery>) {
return overseasHttp.get('/platform/v1/last-leg/orders/export', { params: query, responseType: 'blob' })
}
export async function createLastMileOrderFee(orderId: string, payload: CreateLastMileFeePayload) {
const response = await overseasHttp.post<ApiEnvelope<LastMileFeeDto>, ApiEnvelope<LastMileFeeDto>>(
`/platform/v1/last-leg/orders/${encodeURIComponent(orderId)}/fees`, payload,