cập nhật animation hiển thị modal, call API edit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user