...
|
...
|
@@ -22,14 +22,14 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(createCooperationProjectCommand.Operator)
|
|
|
|
|
|
result, err := creationCooperationGateway.CooperationProjectAdd(allied_creation_cooperation.ReqCooperationProjectAdd{
|
|
|
CooperationProjectDescription: createCooperationProjectCommand.CooperationProjectDescription,
|
|
|
CooperationProjectName: createCooperationProjectCommand.CooperationProjectName,
|
|
|
CooperationModeNumber: createCooperationProjectCommand.CooperationModeNumber,
|
|
|
PublisherUid: int(createCooperationProjectCommand.Operator.UserId),
|
|
|
SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor,
|
|
|
DepartmentId: int(createCooperationProjectCommand.DepartmentId),
|
|
|
CooperationProjectUndertakerType: createCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
Attachment: createCooperationProjectCommand.Images,
|
|
|
CooperationProjectDescription: createCooperationProjectCommand.CooperationProjectDescription,
|
|
|
CooperationProjectName: createCooperationProjectCommand.CooperationProjectName,
|
|
|
CooperationModeNumber: createCooperationProjectCommand.CooperationModeNumber,
|
|
|
PublisherUid: int(createCooperationProjectCommand.Operator.UserId),
|
|
|
SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor,
|
|
|
DepartmentId: int(createCooperationProjectCommand.DepartmentId),
|
|
|
CooperationProjectUndertakerTypes: createCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
Attachment: createCooperationProjectCommand.Images,
|
|
|
})
|
|
|
|
|
|
if err != nil {
|
...
|
...
|
@@ -135,15 +135,15 @@ func (cooperationProjectService *CooperationProjectService) UpdateCooperationPro |
|
|
}
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(updateCooperationProjectCommand.Operator)
|
|
|
_, err := creationCooperationGateway.CooperationProjectUpdate(allied_creation_cooperation.ReqCooperationProjectUpdate{
|
|
|
CooperationProjectId: updateCooperationProjectCommand.CooperationProjectId,
|
|
|
CooperationProjectName: updateCooperationProjectCommand.CooperationProjectName,
|
|
|
CooperationModeNumber: updateCooperationProjectCommand.CooperationModeNumber,
|
|
|
CooperationProjectUndertakerType: updateCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
SponsorUid: updateCooperationProjectCommand.CooperationProjectSponsor,
|
|
|
PublisherUid: strconv.Itoa(int(updateCooperationProjectCommand.Operator.UserId)),
|
|
|
CooperationProjectDescription: updateCooperationProjectCommand.CooperationProjectDescription,
|
|
|
Attachment: updateCooperationProjectCommand.Images,
|
|
|
DepartmentId: updateCooperationProjectCommand.DepartmentId,
|
|
|
CooperationProjectId: updateCooperationProjectCommand.CooperationProjectId,
|
|
|
CooperationProjectName: updateCooperationProjectCommand.CooperationProjectName,
|
|
|
CooperationModeNumber: updateCooperationProjectCommand.CooperationModeNumber,
|
|
|
CooperationProjectUndertakerTypes: updateCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
SponsorUid: updateCooperationProjectCommand.CooperationProjectSponsor,
|
|
|
PublisherUid: strconv.Itoa(int(updateCooperationProjectCommand.Operator.UserId)),
|
|
|
CooperationProjectDescription: updateCooperationProjectCommand.CooperationProjectDescription,
|
|
|
Attachment: updateCooperationProjectCommand.Images,
|
|
|
DepartmentId: updateCooperationProjectCommand.DepartmentId,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
|