add maps
This commit is contained in:
6
controller/DeviceController.ts
Normal file
6
controller/DeviceController.ts
Normal 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);
|
||||
}
|
||||
8
controller/typings.d.ts
vendored
8
controller/typings.d.ts
vendored
@@ -6,4 +6,12 @@ declare namespace Model {
|
||||
interface LoginResponse {
|
||||
token?: string;
|
||||
}
|
||||
|
||||
interface GPSResonse {
|
||||
lat: number;
|
||||
lon: number;
|
||||
s: number;
|
||||
h: number;
|
||||
fishing: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user