优化
This commit is contained in:
@@ -133,3 +133,8 @@ export function createDiscard(payload: { items: Array<{ orderId?: string; return
|
||||
export function cancelDiscard(discardNo: string) {
|
||||
return apiRequest<Record<string, unknown>>({ method: 'POST', url: `/merchant/v1/last-leg/cargo-discards/${encodeURIComponent(discardNo)}/cancel` })
|
||||
}
|
||||
|
||||
export interface DiscardPhoto { fileId: string; palletNo: string; fileName: string; createdAt: string; submittedAt: string }
|
||||
export function downloadDiscardPhoto(discardNo: string, fileId: string) {
|
||||
return apiBlobRequest({ method: 'GET', url: `/merchant/v1/last-leg/cargo-discards/${encodeURIComponent(discardNo)}/photos/files/${encodeURIComponent(fileId)}/download` })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user