thêm tab "Xem chi tiết chuyến đi", "Xem chi tiết thành viên chuyến đi", tái sử dụng lại components modal tripForm
This commit is contained in:
12
controller/TripCrewController.ts
Normal file
12
controller/TripCrewController.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { api } from "@/config";
|
||||
import { API_GET_PHOTO, API_GET_TRIP_CREW } from "@/constants";
|
||||
|
||||
export async function queryTripCrew(tripId: string) {
|
||||
return api.get<Model.TripCrews[]>(`${API_GET_TRIP_CREW}/${tripId}`);
|
||||
}
|
||||
|
||||
export async function queryCrewImage(personal_id: string) {
|
||||
return await api.get(`${API_GET_PHOTO}/people/${personal_id}/main`, {
|
||||
responseType: "arraybuffer",
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user