index.ts
1.85 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
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
/*
import { ProjectApi } from './index';
* @Description:
* @Author: huyue
* @Date: 2023-01-16 17:23:14
* @LastEditors: huyue
* @LastEditTime: 2023-07-24 14:21:35
*/
/**
* 存放公共的类型声明文件
*/
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;
}
// 项目接口查询参数
export interface ProjectApiSearch {
page: number;
size: number;
projectId: any;
url?: string;
}
export interface CopyProject {
moduleUrl?: string;
env?: string;
}
export interface ConfigList {
id?: number,
name: string,
identify: string,
content: string,
desc: string
}
// 公共模板列表
export interface ModelList {
id?: number,
templateName: string,
templateContent: string,
remark: string,
createDate: string,
updateDate: string
}
export interface ModelAdd {
templateName: string,
templateContent: string,
remark: string
}
export interface ConfigAdd {
remark: string,
content: string,
uniqueName: string
}
export interface ModelDelete {
id: number
}
export interface IsUnique {
uniqueName: string
}