complete sync api
This commit is contained in:
@@ -13,5 +13,5 @@ export interface OverviewResponse {
|
||||
user: OverviewUser
|
||||
}
|
||||
|
||||
export const getOverviewDetails = () => axiosInstance.get<OverviewResponse[] | OverviewResponse | []>("/gps/overview/main")
|
||||
export const getOverviewDetails = () => axiosInstance.get<OverviewResponse[] | OverviewResponse | [], any>("/gps/overview/main")
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import axiosInstance from "../axios";
|
||||
|
||||
export type OverviewUser = {
|
||||
walletBalance: number,
|
||||
dollarBalance: number,
|
||||
score: number,
|
||||
_id: string,
|
||||
id: string
|
||||
}
|
||||
|
||||
export interface OverviewResponse {
|
||||
pending: boolean,
|
||||
user: OverviewUser
|
||||
}
|
||||
|
||||
export const getWalletDetails = () => axiosInstance.get<OverviewResponse[] | OverviewResponse | [], any>("/gps/overview/wallet")
|
||||
|
||||
Reference in New Issue
Block a user