Blame view

src/api/demo/account.ts 436 Bytes
1
2
3
4
5
import { defHttp } from '/@/utils/http/axios';
import { GetAccountInfoModel } from './model/accountModel';

enum Api {
  ACCOUNT_INFO = '/account/getAccountInfo',
6
  SESSION_TIMEOUT = '/user/sessionTimeout',
7
8
}
vben authored
9
// Get personal center-basic settings
Vben authored
10
11
export const accountInfoApi = () => defHttp.get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO });
12
13

export const sessionTimeoutApi = () => defHttp.post<void>({ url: Api.SESSION_TIMEOUT });