-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathinterface.tsx
64 lines (58 loc) · 1.08 KB
/
interface.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import React from 'react';
export interface MenuConfItem {
key?: string,
name?: string | React.ReactNode,
path?: string,
icon?: string,
type?: 'group',
component?: React.ReactNode,
children?: MenuConfItem[],
visible?: boolean,
rootVisible?: boolean,
networkopsVisible?: boolean,
to?: string,
divider?: boolean,
target?: string,
getQuery?: (query: any) => any,
permissionPoint?: string,
isAbsolutePath?: boolean,
isIntl?:boolean
}
export interface TreeNode {
id: number,
pid: number,
ident: string,
name: string,
path: string,
type: number,
leaf: number,
cate?: string,
note?: string,
children?: TreeNode[],
icon_color: string,
icon_char: string,
org?: string,
}
export interface ResponseDat {
list: any[],
total: number,
}
export interface Response {
err : string,
dat: any | ResponseDat,
}
export interface UserProfile {
id: number,
username: string,
dispname: string,
email: string,
phone: string,
im: string,
isroot: boolean,
}
export interface Tenant {
id: number,
ident: string,
name: string,
note: string,
}