blob: 56152fcfb9ee2c6a806050c8450f40a1e94bd77a [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>>> {
2230101433099002025-06-08 23:14:17 +08008 return axios.get('/api/user/me');
22301014b1477f72025-06-07 22:54:40 +08009 }
10}
11
12export default UserAPi;