hiển thị thuyền thông tin tàu
This commit is contained in:
@@ -2,7 +2,10 @@ import { api } from "@/config";
|
||||
import {
|
||||
API_GET_ALARMS,
|
||||
API_GET_GPS,
|
||||
API_GET_SHIP_GROUPS,
|
||||
API_GET_SHIP_TYPES,
|
||||
API_PATH_ENTITIES,
|
||||
API_PATH_SEARCH_THINGS,
|
||||
API_PATH_SHIP_TRACK_POINTS,
|
||||
API_SOS,
|
||||
} from "@/constants";
|
||||
@@ -35,3 +38,15 @@ export async function queryDeleteSos() {
|
||||
export async function querySendSosMessage(message: string) {
|
||||
return await api.put<Model.SosRequest>(API_SOS, { message });
|
||||
}
|
||||
|
||||
export async function querySearchThings(body: Model.SearchThingBody) {
|
||||
return await api.post<Model.ThingsResponse>(API_PATH_SEARCH_THINGS, body);
|
||||
}
|
||||
|
||||
export async function queryShipTypes() {
|
||||
return await api.get<Model.ShipType[]>(API_GET_SHIP_TYPES);
|
||||
}
|
||||
|
||||
export async function queryShipGroups() {
|
||||
return await api.get<Model.ShipGroup[]>(API_GET_SHIP_GROUPS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user