22301014 | b1477f7 | 2025-06-07 22:54:40 +0800 | [diff] [blame] | 1 | import type { AxiosResponse } from "axios"; |
2 | import axios from "axios"; | ||||
3 | import type { UserInfo } from "./type"; | ||||
4 | import type { CommonResponse } from "../type"; | ||||
5 | |||||
6 | class UserAPi { | ||||
7 | static getMe() :Promise<AxiosResponse<CommonResponse<UserInfo>>> { | ||||
8 | return axios.get('/api/me'); | ||||
9 | } | ||||
10 | } | ||||
11 | |||||
12 | export default UserAPi; |