feat(pl): add public transport history API client

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-21 11:26:09 +08:00
1 parent c51345eec5
commit 267b678e7a
1 file changed
+26
+26
View File
@@ -64,8 +64,34 @@ export interface PublicUploadResult {
fileName?: string
}
export interface PublicTransportHistoryRecord {
planId: string
planNo: string
transportId: string
driverAccessToken?: string
driverUrl?: string
licensePlate?: string
pickupTime?: string
deliveryTime?: string
pickupAddress?: string
destinationAddress?: string
planVoided?: boolean
planArchived?: boolean
statusLabel?: string
}
export interface PublicTransportHistoryPage {
licensePlate?: string
date: string
records: PublicTransportHistoryRecord[]
}
export const publicTransportApi = {
getPage: (token: string) => publicPlGet<PublicTransportPage>(`/public/pl/transport/${token}`),
getHistory: (token: string, date: string) =>
publicPlGet<PublicTransportHistoryPage>(
`/public/pl/transport/${token}/history?date=${encodeURIComponent(date)}`
),
saveFeedback: (
token: string,
data: {