thêm giao diện map và cập nhật nativewind
This commit is contained in:
@@ -1,6 +1,18 @@
|
||||
import { api } from "@/config";
|
||||
import { API_GET_GPS } from "@/constants";
|
||||
import {
|
||||
API_GET_ALARMS,
|
||||
API_GET_GPS,
|
||||
API_PATH_SHIP_TRACK_POINTS,
|
||||
} from "@/constants";
|
||||
|
||||
export async function fetchGpsData() {
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user