13 changed files with 77 additions and 74 deletions
@ -1,14 +1,12 @@ |
|||
import { defHttp } from '/@/utils/http/axios'; |
|||
import { GetAccountInfoModel } from './model/accountModel'; |
|||
|
|||
const { get } = defHttp; |
|||
|
|||
enum Api { |
|||
ACCOUNT_INFO = '/account/getAccountInfo', |
|||
} |
|||
|
|||
// Get personal center-basic settings
|
|||
export function accountInfoApi() { |
|||
return defHttp.request<GetAccountInfoModel>({ |
|||
url: Api.ACCOUNT_INFO, |
|||
method: 'GET', |
|||
}); |
|||
} |
|||
|
|||
export const accountInfoApi = () => get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO }); |
|||
|
|||
@ -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__'; |
|||
|
|||
Loading…
Reference in new issue