| import type { AxiosResponse } from "axios"; | |
| import axios from "axios"; | |
| import type { UserInfo } from "./type"; | |
| import type { CommonResponse } from "../type"; | |
| class UserAPi { | |
| static getMe() :Promise<AxiosResponse<CommonResponse<UserInfo>>> { | |
| return axios.get('/api/user/me'); | |
| } | |
| } | |
| export default UserAPi; |