19 lines
428 B
TypeScript
19 lines
428 B
TypeScript
import { api } from "@/config";
|
|
import {
|
|
API_GET_ALARMS,
|
|
API_GET_GPS,
|
|
API_PATH_SHIP_TRACK_POINTS,
|
|
} from "@/constants";
|
|
|
|
export async function queryGpsData() {
|
|
return api.get<Model.GPSResonse>(API_GET_GPS);
|
|
}
|
|
|
|
export async function queryAlarm() {
|
|
return api.get<Model.AlarmResponse>(API_GET_ALARMS);
|
|
}
|
|
|
|
export async function queryTrackPoints() {
|
|
return api.get<Model.ShipTrackPoint[]>(API_PATH_SHIP_TRACK_POINTS);
|
|
}
|