|
@@ -22,14 +22,14 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
|
@@ -22,14 +22,14 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
22
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(createCooperationProjectCommand.Operator)
|
22
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(createCooperationProjectCommand.Operator)
|
23
|
|
23
|
|
24
|
result, err := creationCooperationGateway.CooperationProjectAdd(allied_creation_cooperation.ReqCooperationProjectAdd{
|
24
|
result, err := creationCooperationGateway.CooperationProjectAdd(allied_creation_cooperation.ReqCooperationProjectAdd{
|
25
|
- CooperationProjectDescription: createCooperationProjectCommand.CooperationProjectDescription,
|
|
|
26
|
- CooperationProjectName: createCooperationProjectCommand.CooperationProjectName,
|
|
|
27
|
- CooperationModeNumber: createCooperationProjectCommand.CooperationModeNumber,
|
|
|
28
|
- PublisherUid: int(createCooperationProjectCommand.Operator.UserId),
|
|
|
29
|
- SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor,
|
|
|
30
|
- DepartmentId: int(createCooperationProjectCommand.DepartmentId),
|
|
|
31
|
- CooperationProjectUndertakerType: createCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
32
|
- Attachment: createCooperationProjectCommand.Images,
|
25
|
+ CooperationProjectDescription: createCooperationProjectCommand.CooperationProjectDescription,
|
|
|
26
|
+ CooperationProjectName: createCooperationProjectCommand.CooperationProjectName,
|
|
|
27
|
+ CooperationModeNumber: createCooperationProjectCommand.CooperationModeNumber,
|
|
|
28
|
+ PublisherUid: int(createCooperationProjectCommand.Operator.UserId),
|
|
|
29
|
+ SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor,
|
|
|
30
|
+ DepartmentId: int(createCooperationProjectCommand.DepartmentId),
|
|
|
31
|
+ CooperationProjectUndertakerTypes: createCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
32
|
+ Attachment: createCooperationProjectCommand.Images,
|
33
|
})
|
33
|
})
|
34
|
|
34
|
|
35
|
if err != nil {
|
35
|
if err != nil {
|
|
@@ -135,15 +135,15 @@ func (cooperationProjectService *CooperationProjectService) UpdateCooperationPro |
|
@@ -135,15 +135,15 @@ func (cooperationProjectService *CooperationProjectService) UpdateCooperationPro |
135
|
}
|
135
|
}
|
136
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(updateCooperationProjectCommand.Operator)
|
136
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(updateCooperationProjectCommand.Operator)
|
137
|
_, err := creationCooperationGateway.CooperationProjectUpdate(allied_creation_cooperation.ReqCooperationProjectUpdate{
|
137
|
_, err := creationCooperationGateway.CooperationProjectUpdate(allied_creation_cooperation.ReqCooperationProjectUpdate{
|
138
|
- CooperationProjectId: updateCooperationProjectCommand.CooperationProjectId,
|
|
|
139
|
- CooperationProjectName: updateCooperationProjectCommand.CooperationProjectName,
|
|
|
140
|
- CooperationModeNumber: updateCooperationProjectCommand.CooperationModeNumber,
|
|
|
141
|
- CooperationProjectUndertakerType: updateCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
142
|
- SponsorUid: updateCooperationProjectCommand.CooperationProjectSponsor,
|
|
|
143
|
- PublisherUid: strconv.Itoa(int(updateCooperationProjectCommand.Operator.UserId)),
|
|
|
144
|
- CooperationProjectDescription: updateCooperationProjectCommand.CooperationProjectDescription,
|
|
|
145
|
- Attachment: updateCooperationProjectCommand.Images,
|
|
|
146
|
- DepartmentId: updateCooperationProjectCommand.DepartmentId,
|
138
|
+ CooperationProjectId: updateCooperationProjectCommand.CooperationProjectId,
|
|
|
139
|
+ CooperationProjectName: updateCooperationProjectCommand.CooperationProjectName,
|
|
|
140
|
+ CooperationModeNumber: updateCooperationProjectCommand.CooperationModeNumber,
|
|
|
141
|
+ CooperationProjectUndertakerTypes: updateCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
142
|
+ SponsorUid: updateCooperationProjectCommand.CooperationProjectSponsor,
|
|
|
143
|
+ PublisherUid: strconv.Itoa(int(updateCooperationProjectCommand.Operator.UserId)),
|
|
|
144
|
+ CooperationProjectDescription: updateCooperationProjectCommand.CooperationProjectDescription,
|
|
|
145
|
+ Attachment: updateCooperationProjectCommand.Images,
|
|
|
146
|
+ DepartmentId: updateCooperationProjectCommand.DepartmentId,
|
147
|
})
|
147
|
})
|
148
|
if err != nil {
|
148
|
if err != nil {
|
149
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
149
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|