wip: add account management page

This commit is contained in:
Vben
2021-03-01 00:56:25 +08:00
parent c8e84dc14e
commit 37669d067c
23 changed files with 372 additions and 16 deletions

View File

@@ -0,0 +1,21 @@
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
export type Params = BasicPageParams & {
account?: string;
nickname?: string;
};
export interface DemoListItem {
id: string;
account: string;
email: string;
nickname: string;
role: number;
updateTime: string;
remark: string;
}
/**
* @description: Request list return value
*/
export type DemoListGetResultModel = BasicFetchResult<DemoListItem>;

10
src/api/demo/system.ts Normal file
View File

@@ -0,0 +1,10 @@
import { Params, DemoListGetResultModel } from './model/systemModel';
import { defHttp } from '/@/utils/http/axios';
enum Api {
// The address does not exist
AccountList = '/system/getAccountList',
}
export const getAccountList = (params: Params) =>
defHttp.get<DemoListGetResultModel>({ url: Api.AccountList, params });