8 changed files with 11 additions and 19 deletions
@ -1,12 +1,10 @@ |
|||||
import { defHttp } from '/@/utils/http/axios'; |
import { defHttp } from '/@/utils/http/axios'; |
||||
import { GetAccountInfoModel } from './model/accountModel'; |
import { GetAccountInfoModel } from './model/accountModel'; |
||||
|
|
||||
const { get } = defHttp; |
|
||||
|
|
||||
enum Api { |
enum Api { |
||||
ACCOUNT_INFO = '/account/getAccountInfo', |
ACCOUNT_INFO = '/account/getAccountInfo', |
||||
} |
} |
||||
|
|
||||
// Get personal center-basic settings
|
// Get personal center-basic settings
|
||||
|
|
||||
export const accountInfoApi = () => get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO }); |
export const accountInfoApi = () => defHttp.get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO }); |
||||
|
|||||
Loading…
Reference in new issue