vue-vben-admin/src/api/demo/account.ts

14 lines
436 B
TypeScript
Raw Normal View History

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',
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
export const accountInfoApi = () => defHttp.get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO });
export const sessionTimeoutApi = () => defHttp.post<void>({ url: Api.SESSION_TIMEOUT });