Files
sgw-owner-app/controller/DeviceController.ts
2025-12-09 11:37:19 +07:00

19 lines
500 B
TypeScript

import { api } from "@/config";
import {
API_GET_SHIP_GROUPS,
API_GET_SHIP_TYPES,
API_PATH_SEARCH_THINGS,
} from "@/constants";
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);
}