mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 08:36:19 +08:00
wip: add account management page
This commit is contained in:
21
src/api/demo/model/systemModel.ts
Normal file
21
src/api/demo/model/systemModel.ts
Normal 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
10
src/api/demo/system.ts
Normal 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 });
|
Reference in New Issue
Block a user