mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 08:36:19 +08:00
feat: add accountSetting page (#85)
This commit is contained in:
16
src/api/demo/account.ts
Normal file
16
src/api/demo/account.ts
Normal 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,
|
||||
});
|
||||
}
|
7
src/api/demo/model/accountModel.ts
Normal file
7
src/api/demo/model/accountModel.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface GetAccountInfoModel {
|
||||
email: string;
|
||||
name: string;
|
||||
introduction: string;
|
||||
phone: string;
|
||||
address: string;
|
||||
}
|
Reference in New Issue
Block a user