13 changed files with 77 additions and 74 deletions
@ -1,14 +1,12 @@ |
|||||
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 function accountInfoApi() { |
|
||||
return defHttp.request<GetAccountInfoModel>({ |
export const accountInfoApi = () => get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO }); |
||||
url: Api.ACCOUNT_INFO, |
|
||||
method: 'GET', |
|
||||
}); |
|
||||
} |
|
||||
|
|||||
@ -1,2 +1,2 @@ |
|||||
// 接口返回值data不能为这个,否则会判为请求失败
|
// The interface return value data cannot be this, otherwise the request will be judged as a failure
|
||||
export const errorResult = '__ERROR_RESULT__'; |
export const errorResult = '__ERROR_RESULT__'; |
||||
|
|||||
Loading…
Reference in new issue