This commit is contained in:
2026-08-08 14:13:32 +08:00
parent 6f0859e4f3
commit a3a09d1dec
9 changed files with 59 additions and 43 deletions
+1 -2
View File
@@ -8,8 +8,7 @@ import type {
const basePath = '/platform/v1/truck-appointments'
function dtoPayload(payload: SaveTruckAppointmentRequest) {
const { attachmentRefs: _attachmentRefs, ...dto } = payload
return dto
return Object.fromEntries(Object.entries(payload).map(([key, value]) => [key, value === '' ? null : value])) as SaveTruckAppointmentRequest
}
type PagePayload = Omit<TruckAppointmentPage, 'page' | 'size' | 'total' | 'pages'> & {