systemModel.ts 1.3 KB
Newer Older
V
Vben 已提交
1 2
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';

V
Vben 已提交
3
export type AccountParams = BasicPageParams & {
V
Vben 已提交
4 5 6
  account?: string;
  nickname?: string;
};
V
Vben 已提交
7 8 9 10
export type RoleParams = BasicPageParams & {
  roleName?: string;
  status?: string;
};
V
Vben 已提交
11

V
Vben 已提交
12 13 14 15 16
export type DeptParams = {
  deptName?: string;
  status?: string;
};

V
Vben 已提交
17 18 19 20 21
export type MenuParams = {
  menuName?: string;
  status?: string;
};

V
Vben 已提交
22
export interface AccountListItem {
V
Vben 已提交
23 24 25 26 27
  id: string;
  account: string;
  email: string;
  nickname: string;
  role: number;
V
Vben 已提交
28
  createTime: string;
V
Vben 已提交
29
  remark: string;
V
Vben 已提交
30 31 32 33 34 35 36 37 38
  status: number;
}

export interface DeptListItem {
  id: string;
  orderNo: string;
  createTime: string;
  remark: string;
  status: number;
V
Vben 已提交
39 40
}

V
Vben 已提交
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
export interface MenuListItem {
  id: string;
  orderNo: string;
  createTime: string;
  status: number;
  icon: string;
  component: string;
  permission: string;
}

export interface RoleListItem {
  id: string;
  roleName: string;
  roleValue: string;
  status: number;
  orderNo: string;
  createTime: string;
}

V
Vben 已提交
60 61 62
/**
 * @description: Request list return value
 */
V
Vben 已提交
63 64 65
export type AccountListGetResultModel = BasicFetchResult<AccountListItem>;

export type DeptListGetResultModel = BasicFetchResult<DeptListItem>;
V
Vben 已提交
66 67 68 69

export type MenuListGetResultModel = BasicFetchResult<MenuListItem>;

export type RoleListGetResultModel = BasicFetchResult<RoleListItem>;