param_cooperation_application.go
10.2 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
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
package allied_creation_cooperation
import (
"time"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
)
//共创实体
//更新共创申请
type (
ReqCooperationApplicationUpdate struct {
CooperationApplicationId int
}
DataCooperationApplicationUpdate struct {
}
)
//共创申请一键审核
type (
ReqCooperationApplicationBatchApproval struct {
}
DataCooperationApplicationBatchApproval struct {
}
)
//取消共创申请
type (
ReqCooperationApplicationCancel struct {
ApplicationId int
}
DataCooperationApplicationCancel struct {
}
)
//审核-同意共创申请
type (
ReqCooperationApplicationAgree struct {
CooperationApplicationId []int `json:"cooperationApplicationId"`
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
}
DataCooperationApplicationAgree struct {
}
)
//审核-拒绝共创申请
type (
ReqCooperationApplicationReject struct {
CooperationApplicationId []int `json:"cooperationApplicationId"`
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
}
DataCooperationApplicationReject struct {
}
)
//创建共创申请
type (
ReqCooperationApplicationAdd struct {
// 共创申请人uid
ApplicantUid string `json:"applicantUid" `
// 共创申请描述
CooperationApplicationDescription string ` json:"cooperationApplicationDescription"`
// 共创申请描述附件
CooperationApplicationAttachment []domain.Attachment `json:"cooperationApplicationAttachment"`
// 关联的共创项目编号
CooperationProjectNumber string `json:"cooperationProjectNumber"`
}
DataCooperationApplicationAdd struct {
CooperationApplicationId int `json:"cooperationApplicationId,string"`
}
)
//查询共创申请
type (
ReqCooperationApplicationSearch struct {
ApplicantName string `json:"applicantName"` //申请人姓名
CooperationApplicationStatus int `json:"cooperationApplicationStatus"` //共创申请审核状态,1待审核,2已同意,3已拒绝
CooperationProjectName string `json:"cooperationProjectName"` //共创项目名称
PageNumber int `json:"pageNumber"`
PageSize int `json:"pageSize"`
}
DataCooperationApplicationSearch struct {
Gride struct {
Total int
List []struct {
//公司
Company struct {
CompanyID int `json:"companyId"`
CompanyName string `json:"companyName"`
} `json:"company"`
//申请人
CooperationApplicationApplicant struct {
//申请人部门
Department struct {
DepartmentID int `json:"departmentId"`
DepartmentName string `json:"departmentName"`
DepartmentNumber string `json:"departmentNumber"`
} `json:"department"`
//申请人组织
Org struct {
OrgID int `json:"orgId"`
OrgName string `json:"orgName"`
} `json:"org"`
UserBaseID int `json:"userBaseId"`
UserID int `json:"userId"`
UserInfo struct {
UserAccount string `json:"userAccount"`
UserAvatar string `json:"userAvatar"`
UserEmail string `json:"userEmail"`
UserName string `json:"userName"`
UserPhone string `json:"userPhone"`
} `json:"userInfo"`
UserType int `json:"userType"`
} `json:"cooperationApplicationApplicant"`
//附件信息
CooperationApplicationAttachment []struct {
FileSize int `json:"fileSize"`
FileType string `json:"fileType"`
Name string `json:"name"`
URL string `json:"url"`
} `json:"cooperationApplicationAttachment"`
//申请描述
CooperationApplicationDescription string `json:"cooperationApplicationDescription"`
//id
CooperationApplicationID int `json:"cooperationApplicationId"`
//申请单状态 ,共创申请审核状态,1待审核,2已同意,3已拒绝
CooperationApplicationStatus int `json:"cooperationApplicationStatus"`
//是否已取消
IsCanceled bool `json:"isCanceled"`
//描述
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
//审核时间
CooperationApplicationVerifyTime time.Time `json:"cooperationApplicationVerifyTime"`
//申请时间
CooperationApplyTime time.Time `json:"cooperationApplyTime"`
Org struct {
OrgID int `json:"orgId"`
OrgName string `json:"orgName"`
} `json:"org"`
UpdatedAt time.Time `json:"updatedAt"`
CreatedAt time.Time `json:"createdAt"`
} `json:"list"`
}
}
)
//申请共创
type (
ReqCooperationApplicationApply struct {
}
DataCooperationApplicationApply struct {
}
)
//移除共创申请
type (
ReqCooperationApplicationRemove struct {
ApplicationId int `json:"applicationId"`
}
DataCooperationApplicationRemove struct {
}
)
//返回共创申请列表
type (
ReqCooperationApplicationList struct {
}
DataCooperationApplicationList struct {
}
)
//返回共创申请详情
type (
ReqCooperationApplicationGet struct {
CooperationApplicationId int `json:"cooperationApplicationId"`
}
DataCooperationApplicationGet struct {
Company struct {
CompanyID float64 `json:"companyId"`
CompanyLogo string `json:"companyLogo"`
CompanyName string `json:"companyName"`
} `json:"company"`
//申请人
CooperationApplicationApplicant struct {
Department struct {
DepartmentID float64 `json:"departmentId"`
DepartmentName string `json:"departmentName"`
DepartmentNumber string `json:"departmentNumber"`
IsOrganization bool `json:"isOrganization"`
} `json:"department"`
Org struct {
OrgID int `json:"orgId"`
OrgName string `json:"orgName"`
} `json:"org"`
UserBaseID int `json:"userBaseId"`
UserID int `json:"userId"`
UserInfo struct {
UserAccount string `json:"userAccount"`
UserAvatar string `json:"userAvatar"`
UserEmail string `json:"userEmail"`
UserName string `json:"userName"`
UserPhone string `json:"userPhone"`
} `json:"userInfo"`
UserType float64 `json:"userType"`
} `json:"cooperationApplicationApplicant"`
//附件
CooperationApplicationAttachment []struct {
FileSize float64 `json:"fileSize"`
FileType string `json:"fileType"`
Name string `json:"name"`
URL string `json:"url"`
} `json:"cooperationApplicationAttachment"`
CooperationApplicationDescription string `json:"cooperationApplicationDescription"`
CooperationApplicationID float64 `json:"cooperationApplicationId"`
CooperationApplicationStatus float64 `json:"cooperationApplicationStatus"`
//审核人
CooperationApplicationVerifier struct {
Department struct {
DepartmentID float64 `json:"departmentId"`
DepartmentName string `json:"departmentName"`
DepartmentNumber string `json:"departmentNumber"`
IsOrganization bool `json:"isOrganization"`
} `json:"department"`
Org struct {
OrgID float64 `json:"orgId"`
OrgName string `json:"orgName"`
} `json:"org"`
UserBaseID float64 `json:"userBaseId"`
UserID float64 `json:"userId"`
UserInfo struct {
UserAccount string `json:"userAccount"`
UserAvatar string `json:"userAvatar"`
UserEmail string `json:"userEmail"`
UserName string `json:"userName"`
UserPhone string `json:"userPhone"`
} `json:"userInfo"`
UserType float64 `json:"userType"`
} `json:"cooperationApplicationVerifier"`
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
//审核时间
CooperationApplicationVerifyTime string `json:"cooperationApplicationVerifyTime"`
// 共创申请时间
CooperationApplyTime string `json:"cooperationApplyTime"`
CreatedAt string `json:"createdAt"`
Org struct {
OrgID int `json:"orgId"`
OrgName string `json:"orgName"`
} `json:"org"`
UpdatedAt string `json:"updatedAt"`
//共创项目
CooperationProject struct {
CooperationProjectDescription string `json:"cooperationProjectDescription"`
CooperationProjectID float64 `json:"cooperationProjectId"`
CooperationProjectName string `json:"cooperationProjectName"`
CooperationProjectNumber string `json:"cooperationProjectNumber"`
CooperationProjectPublishTime string `json:"cooperationProjectPublishTime"`
CooperationProjectPublisher struct {
Department struct {
DepartmentID float64 `json:"departmentId"`
DepartmentName string `json:"departmentName"`
DepartmentNumber string `json:"departmentNumber"`
} `json:"department"`
Org struct {
OrgID float64 `json:"orgId"`
OrgName string `json:"orgName"`
} `json:"org"`
UserBaseID float64 `json:"userBaseId"`
UserID float64 `json:"userId"`
UserInfo struct {
UserAccount string `json:"userAccount"`
UserAvatar string `json:"userAvatar"`
UserEmail string `json:"userEmail"`
UserName string `json:"userName"`
UserPhone string `json:"userPhone"`
} `json:"userInfo"`
UserType float64 `json:"userType"`
} `json:"cooperationProjectPublisher"`
//项目发起人
CooperationProjectSponsor struct {
Department struct {
DepartmentID float64 `json:"departmentId"`
DepartmentName string `json:"departmentName"`
DepartmentNumber string `json:"departmentNumber"`
} `json:"department"`
Org struct {
OrgID int `json:"orgId"`
OrgName string `json:"orgName"`
} `json:"org"`
UserBaseID int `json:"userBaseId"`
UserID int `json:"userId"`
UserInfo struct {
UserAccount string `json:"userAccount"`
UserAvatar string `json:"userAvatar"`
UserEmail string `json:"userEmail"`
UserName string `json:"userName"`
UserPhone string `json:"userPhone"`
} `json:"userInfo"`
UserType float64 `json:"userType"`
} `json:"cooperationProjectSponsor"`
CooperationProjectUndertakerType []float64 `json:"cooperationProjectUndertakerType"`
CreatedAt time.Time `json:"createdAt"`
Org struct {
OrgID int `json:"orgId"`
OrgName string `json:"orgName"`
} `json:"org"`
Status float64 `json:"status"`
} `json:"cooperationProject"`
}
)