13 lines
398 B
TypeScript
13 lines
398 B
TypeScript
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",
|
|
});
|
|
}
|