Vben
authored
|
1
2
|
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
|
Vben
authored
|
3
|
export type AccountParams = BasicPageParams & {
|
Vben
authored
|
4
5
6
|
account?: string;
nickname?: string;
};
|
Vben
authored
|
7
8
|
export type RoleParams = {
|
Vben
authored
|
9
10
11
|
roleName?: string;
status?: string;
};
|
Vben
authored
|
12
|
|
Vben
authored
|
13
14
|
export type RolePageParams = BasicPageParams & RoleParams;
|
Vben
authored
|
15
16
17
18
19
|
export type DeptParams = {
deptName?: string;
status?: string;
};
|
Vben
authored
|
20
21
22
23
24
|
export type MenuParams = {
menuName?: string;
status?: string;
};
|
Vben
authored
|
25
|
export interface AccountListItem {
|
Vben
authored
|
26
27
28
29
30
|
id: string;
account: string;
email: string;
nickname: string;
role: number;
|
Vben
authored
|
31
|
createTime: string;
|
Vben
authored
|
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;
|
Vben
authored
|
42
43
|
}
|
Vben
authored
|
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;
}
|
Vben
authored
|
63
64
65
|
/**
* @description: Request list return value
*/
|
Vben
authored
|
66
67
68
|
export type AccountListGetResultModel = BasicFetchResult<AccountListItem>;
export type DeptListGetResultModel = BasicFetchResult<DeptListItem>;
|
Vben
authored
|
69
70
71
|
export type MenuListGetResultModel = BasicFetchResult<MenuListItem>;
|
Vben
authored
|
72
73
74
|
export type RolePageListGetResultModel = BasicFetchResult<RoleListItem>;
export type RoleListGetResultModel = RoleListItem[];
|