...
|
...
|
@@ -20,14 +20,14 @@ func (srv CooperationProjectService) CreateCooperationProject(createCooperationP |
|
|
}
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(createCooperationProjectCommand.Operator)
|
|
|
result, err := creationCooperationGateway.CooperationProjectAdd(allied_creation_cooperation.ReqCooperationProjectAdd{
|
|
|
CooperationProjectDescription: createCooperationProjectCommand.CooperationProjectDescription,
|
|
|
CooperationModeNumber: createCooperationProjectCommand.CooperationModeNumber,
|
|
|
CooperationProjectName: createCooperationProjectCommand.CooperationProjectName,
|
|
|
PublisherUid: int(createCooperationProjectCommand.Operator.UserId),
|
|
|
SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor,
|
|
|
CooperationProjectUndertakerType: createCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
Attachment: createCooperationProjectCommand.Attachment,
|
|
|
DepartmentId: createCooperationProjectCommand.OrgId,
|
|
|
CooperationProjectDescription: createCooperationProjectCommand.CooperationProjectDescription,
|
|
|
CooperationModeNumber: createCooperationProjectCommand.CooperationModeNumber,
|
|
|
CooperationProjectName: createCooperationProjectCommand.CooperationProjectName,
|
|
|
PublisherUid: int(createCooperationProjectCommand.Operator.UserId),
|
|
|
SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor,
|
|
|
CooperationProjectUndertakerTypes: createCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
Attachment: createCooperationProjectCommand.Attachment,
|
|
|
DepartmentId: createCooperationProjectCommand.OrgId,
|
|
|
})
|
|
|
|
|
|
if err != nil {
|
...
|
...
|
@@ -54,15 +54,15 @@ func (srv CooperationProjectService) GetCooperationProject(projectQuery *command |
|
|
func (srv CooperationProjectService) UpdateCooperationProject(updateCooperationProjectCommand *command.UpdateCooperationProjectCommand) (interface{}, error) {
|
|
|
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: strconv.Itoa(int(updateCooperationProjectCommand.CooperationProjectSponsor)),
|
|
|
PublisherUid: strconv.Itoa(int(updateCooperationProjectCommand.Operator.UserId)),
|
|
|
CooperationProjectDescription: updateCooperationProjectCommand.CooperationProjectDescription,
|
|
|
Attachment: updateCooperationProjectCommand.Attachment,
|
|
|
DepartmentId: updateCooperationProjectCommand.OrgId,
|
|
|
CooperationProjectId: updateCooperationProjectCommand.CooperationProjectId,
|
|
|
CooperationProjectName: updateCooperationProjectCommand.CooperationProjectName,
|
|
|
CooperationModeNumber: updateCooperationProjectCommand.CooperationModeNumber,
|
|
|
CooperationProjectUndertakerTypes: updateCooperationProjectCommand.CooperationProjectUndertakerType,
|
|
|
SponsorUid: strconv.Itoa(int(updateCooperationProjectCommand.CooperationProjectSponsor)),
|
|
|
PublisherUid: strconv.Itoa(int(updateCooperationProjectCommand.Operator.UserId)),
|
|
|
CooperationProjectDescription: updateCooperationProjectCommand.CooperationProjectDescription,
|
|
|
Attachment: updateCooperationProjectCommand.Attachment,
|
|
|
DepartmentId: updateCooperationProjectCommand.OrgId,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
|