Vben
2021-02-26 11d3f395caf7e2268630090eb34f4e5c114a96b7
src/api/demo/account.ts
@@ -1,12 +1,10 @@
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 const accountInfoApi = () => get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO });
export const accountInfoApi = () => defHttp.get<GetAccountInfoModel>({ url: Api.ACCOUNT_INFO });