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