cập nhật animation hiển thị modal, call API edit

This commit is contained in:
2025-12-22 22:47:08 +07:00
parent 67e9fc22a3
commit afc6acbfe2
16 changed files with 530 additions and 216 deletions

View File

@@ -7,6 +7,7 @@ import {
API_UPDATE_TRIP_STATUS,
API_GET_LAST_TRIP,
API_POST_TRIP,
API_PUT_TRIP,
} from "@/constants";
export async function queryTrip() {
@@ -36,3 +37,7 @@ export async function queryTripsList(body: Model.TripListBody) {
export async function createTrip(thingId: string, body: Model.TripAPIBody) {
return api.post<Model.Trip>(`${API_POST_TRIP}/${thingId}`, body);
}
export async function updateTrip(tripId: string, body: Model.TripAPIBody) {
return api.put<Model.Trip>(`${API_PUT_TRIP}/${tripId}`, body);
}