You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
594 B
22 lines
594 B
import { defHttp } from '@/utils/http/axios' |
|
import { GetAccountInfoModel } from './model/accountModel' |
|
|
|
enum Api { |
|
ACCOUNT_INFO = '/account/getAccountInfo', |
|
SESSION_TIMEOUT = '/user/sessionTimeout', |
|
TOKEN_EXPIRED = '/user/tokenExpired' |
|
} |
|
|
|
// Get personal center-basic settings |
|
|
|
export const accountInfoApi = () => { |
|
return defHttp.get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO }) |
|
} |
|
|
|
export const sessionTimeoutApi = () => { |
|
return defHttp.post<void>({ url: Api.SESSION_TIMEOUT }) |
|
} |
|
|
|
export const tokenExpiredApi = () => { |
|
return defHttp.post<void>({ url: Api.TOKEN_EXPIRED }) |
|
}
|
|
|