thêm giao diện map và cập nhật nativewind

This commit is contained in:
Tran Anh Tuan
2025-10-30 17:55:25 +07:00
parent d717a360b7
commit f9ca9542c4
31 changed files with 1068 additions and 65 deletions

View File

@@ -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);
}