mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 00:26:20 +08:00
14 lines
436 B
TypeScript
14 lines
436 B
TypeScript
import { defHttp } from '/@/utils/http/axios';
|
|
import { GetAccountInfoModel } from './model/accountModel';
|
|
|
|
enum Api {
|
|
ACCOUNT_INFO = '/account/getAccountInfo',
|
|
SESSION_TIMEOUT = '/user/sessionTimeout',
|
|
}
|
|
|
|
// Get personal center-basic settings
|
|
|
|
export const accountInfoApi = () => defHttp.get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO });
|
|
|
|
export const sessionTimeoutApi = () => defHttp.post<void>({ url: Api.SESSION_TIMEOUT });
|