feat: add accountSetting page (#85)

This commit is contained in:
chen-xt
2020-11-14 20:34:46 +08:00
committed by GitHub
parent 261936b117
commit 7ad4cee79a
11 changed files with 525 additions and 0 deletions

16
src/api/demo/account.ts Normal file
View File

@@ -0,0 +1,16 @@
import { defHttp } from '/@/utils/http/axios';
import { GetAccountInfoModel } from './model/accountModel';
enum Api {
ACCOUNT_INFO = '/account/getAccountInfo',
SECURE_LIST = '/account/getSecureList',
}
// 获取个人中心--基础设置内容
export function accountInfoApi(params: any) {
return defHttp.request<GetAccountInfoModel>({
url: Api.ACCOUNT_INFO,
method: 'GET',
params,
});
}

View File

@@ -0,0 +1,7 @@
export interface GetAccountInfoModel {
email: string;
name: string;
introduction: string;
phone: string;
address: string;
}