index.ts
1.04 KB
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
/*
* @Description:
* @Author: huyue
* @Date: 2023-01-16 17:23:14
* @LastEditors: huyue
* @LastEditTime: 2023-02-24 22:21:25
*/
/**
* 存放公共的类型声明文件
*/
export interface HttpResponse {
code?: number;
data?: any;
message?: string | Record<string, any>; // 定义 字符串,对象类型
[propname: string]: any;
}
//项目分类
export interface ProjectItem {
id?: number;
name: string;
addr: string;
remark: string;
flag?: boolean;
[property: string]: any;
}
//项目分类里api
export interface ProjectApi {
id?: number;
projectId: number;
method: string;
url: string;
baseUrl?: string;
remark: string;
content: string;
createDate?: Date;
updateDate?: Date;
}
//项目条件判断
export interface ConditionItem {
id?: number;
name: string;
content: string;
createDate?: Date;
updateDate?: Date;
}
//用户相关信息
export interface UserMessage {
id?: number;
roleId?: number;
name?: string;
account?: string;
password: string;
createDate?: Date;
updateDate?: Date;
}