cập nhật phần modal thêm chuyến đi mới

This commit is contained in:
2025-12-08 23:41:05 +07:00
parent 0e1332f433
commit 7c3497d159
16 changed files with 2775 additions and 3 deletions

View File

@@ -5,12 +5,17 @@ import {
API_POST_TRIPSLIST,
API_UPDATE_FISHING_LOGS,
API_UPDATE_TRIP_STATUS,
API_GET_LAST_TRIP,
} from "@/constants";
export async function queryTrip() {
return api.get<Model.Trip>(API_GET_TRIP);
}
export async function queryLastTrip(thingId: string) {
return api.get<Model.Trip>(`${API_GET_LAST_TRIP}/${thingId}`);
}
export async function queryUpdateTripState(body: Model.TripUpdateStateRequest) {
return api.put(API_UPDATE_TRIP_STATUS, body);
}