2020-11-14 20:34:46 +08:00
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
|
import { GetAccountInfoModel } from './model/accountModel';
|
|
|
|
|
|
|
|
|
|
enum Api {
|
|
|
|
|
ACCOUNT_INFO = '/account/getAccountInfo',
|
2021-05-25 23:14:05 +08:00
|
|
|
SESSION_TIMEOUT = '/user/sessionTimeout',
|
2020-11-14 20:34:46 +08:00
|
|
|
}
|
|
|
|
|
|
2020-11-18 22:41:59 +08:00
|
|
|
// Get personal center-basic settings
|
2021-02-26 22:45:36 +08:00
|
|
|
|
2021-02-26 23:30:22 +08:00
|
|
|
export const accountInfoApi = () => defHttp.get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO });
|
2021-05-25 23:14:05 +08:00
|
|
|
|
|
|
|
|
export const sessionTimeoutApi = () => defHttp.post<void>({ url: Api.SESSION_TIMEOUT });
|