This commit is contained in:
Tran Anh Tuan
2025-10-30 12:34:45 +07:00
parent 79959a3050
commit fd6e07ee24
7 changed files with 133 additions and 95 deletions

View File

@@ -0,0 +1,6 @@
import { api } from "@/config";
import { API_GET_GPS } from "@/constants";
export async function fetchGpsData() {
return api.get<Model.GPSResonse>(API_GET_GPS);
}

View File

@@ -6,4 +6,12 @@ declare namespace Model {
interface LoginResponse {
token?: string;
}
interface GPSResonse {
lat: number;
lon: number;
s: number;
h: number;
fishing: boolean;
}
}