Blame view

src/api/demo/model/systemModel.ts 1.43 KB
1
2
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
Vben authored
3
export type AccountParams = BasicPageParams & {
4
5
6
  account?: string;
  nickname?: string;
};
7
8

export type RoleParams = {
9
10
11
  roleName?: string;
  status?: string;
};
12
13
14
export type RolePageParams = BasicPageParams & RoleParams;
Vben authored
15
16
17
18
19
export type DeptParams = {
  deptName?: string;
  status?: string;
};
20
21
22
23
24
export type MenuParams = {
  menuName?: string;
  status?: string;
};
Vben authored
25
export interface AccountListItem {
26
27
28
29
30
  id: string;
  account: string;
  email: string;
  nickname: string;
  role: number;
Vben authored
31
  createTime: string;
32
  remark: string;
Vben authored
33
34
35
36
37
38
39
40
41
  status: number;
}

export interface DeptListItem {
  id: string;
  orderNo: string;
  createTime: string;
  remark: string;
  status: number;
42
43
}
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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;
}
63
64
65
/**
 * @description: Request list return value
 */
Vben authored
66
67
68
export type AccountListGetResultModel = BasicFetchResult<AccountListItem>;

export type DeptListGetResultModel = BasicFetchResult<DeptListItem>;
69
70
71

export type MenuListGetResultModel = BasicFetchResult<MenuListItem>;
72
73
74
export type RolePageListGetResultModel = BasicFetchResult<RoleListItem>;

export type RoleListGetResultModel = RoleListItem[];