-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypings.d.ts
152 lines (135 loc) · 2.72 KB
/
typings.d.ts
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
declare module '*.css';
declare module '*.less';
declare module '*.png';
declare module '*.svg' {
export function ReactComponent(props: React.SVGProps<SVGSVGElement>): React.ReactElement;
const url: string;
export default url;
}
declare const Aliplayer: any;
declare const AliyunUpload: any;
// 路由权限
interface MenuObj {
id: string;
iconSkin?: string;
urlPath?: string;
systemName?: string;
name?: string;
pid?: string;
}
interface InitState {}
type InitialState = InitState;
// PageView 里面的
interface LinkRrouter {
name: string;
address?: string;
}
// 请求参数
type Params = Record<string, any>;
interface WindowSize {
width?: number;
height?: number;
}
type FormParams = Record<string, any>;
interface DomSize {
width?: number;
height?: number;
}
// 接口返回参数
interface AjaxRes {
code?: string;
data?: any;
message?: string;
}
// 表格统一请求参数
interface TableParams {
pageSize: number;
pageNum: number;
[key: string]: any;
}
// 表格大小
interface TableSize {
width?: number;
height?: number;
}
interface TransformData {
name: any;
value: any;
}
// 路由
interface NavTree {
icon: string;
name: string;
level: number;
parentId: number;
type: number;
orderNum?: number;
delFlag?: number;
id: number;
url: string;
children?: NavTree[] | [];
selectFlag: boolean;
}
// 角色
interface RoleObj {
createBy: string;
createTime: string;
lastUpdateBy: string;
lastUpdateTime: string;
name: string;
remark: string;
createById: number;
delFlag: number;
id: number;
lastUpdateById: number;
/**角色名称 */
roleName: string;
}
interface HistoryRoute {
title: string;
key: string;
}
/**表格中显示的状态 */
type TableItemStatusText = 'Default' | 'Processing' | 'Success' | 'Error';
/**
* 实际值 数据字典 静态数据类型
*/
interface CheckboxGroupOption {
label: string;
value: string | number;
children?: CheckboxGroupOption;
}
/**
* 静态信息
*/
interface CommonStaticInfo extends Params {
/**试题类型 1:单选题 2:多选题 3:判断题*/
T_TOPIC_INFO: CheckboxGroupOption[];
/**课程分类 */
T_COURSE_INFO: CheckboxGroupOption[];
/**培训状态
* value: 0, label: "未发布"
* value: 1, label: "未开始",
* value: 2, label: "进行中",
* value: 3, label: "已结束",
* value: 4, label: "已作废",
* */
T_TRAIN_INFO: CheckboxGroupOption[];
}
interface ComboBox {
comboBoxVOList: CheckboxGroupOption;
type: string;
}
interface UploadInfo {
videoId?: string;
file?: File;
bucket?: string;
endpoint?: string;
object?: any;
}
interface UploadAliyunPramse {
uploadAuth?: string;
uploadAddress?: string;
/**视频id */
videoId?: string;
}