|
@@ -68,23 +68,23 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
|
@@ -68,23 +68,23 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
68
|
// 获取操作人
|
68
|
// 获取操作人
|
69
|
var operator *domain.User
|
69
|
var operator *domain.User
|
70
|
if data, err := userService.OperatorFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId, createCooperationProjectCommand.UserId); err != nil {
|
70
|
if data, err := userService.OperatorFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId, createCooperationProjectCommand.UserId); err != nil {
|
71
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
71
|
+ return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取操作人失败")
|
72
|
} else {
|
72
|
} else {
|
73
|
operator = data
|
73
|
operator = data
|
74
|
}
|
74
|
}
|
75
|
|
75
|
|
76
|
- // Sponsor
|
76
|
+ // 获取发起人
|
77
|
var sponsor *domain.User
|
77
|
var sponsor *domain.User
|
78
|
if data, err := userService.UserFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId, createCooperationProjectCommand.SponsorUid); err != nil {
|
78
|
if data, err := userService.UserFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId, createCooperationProjectCommand.SponsorUid); err != nil {
|
79
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
79
|
+ return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取发起人失败")
|
80
|
} else {
|
80
|
} else {
|
81
|
sponsor = data
|
81
|
sponsor = data
|
82
|
}
|
82
|
}
|
83
|
|
83
|
|
84
|
- // Publisher
|
84
|
+ // 获取发布人
|
85
|
var publisher *domain.User
|
85
|
var publisher *domain.User
|
86
|
if data, err := userService.UserFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId, createCooperationProjectCommand.PublisherUid); err != nil {
|
86
|
if data, err := userService.UserFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId, createCooperationProjectCommand.PublisherUid); err != nil {
|
87
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
87
|
+ return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取发布人失败")
|
88
|
} else {
|
88
|
} else {
|
89
|
publisher = data
|
89
|
publisher = data
|
90
|
}
|
90
|
}
|
|
@@ -100,7 +100,7 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
|
@@ -100,7 +100,7 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
100
|
// 获取公司信息
|
100
|
// 获取公司信息
|
101
|
var company *domain.Company
|
101
|
var company *domain.Company
|
102
|
if data, err := companyService.CompanyFrom(createCooperationProjectCommand.CompanyId); err != nil {
|
102
|
if data, err := companyService.CompanyFrom(createCooperationProjectCommand.CompanyId); err != nil {
|
103
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
103
|
+ return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取公司信息失败")
|
104
|
} else {
|
104
|
} else {
|
105
|
company = data
|
105
|
company = data
|
106
|
}
|
106
|
}
|
|
@@ -116,15 +116,15 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
|
@@ -116,15 +116,15 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro |
116
|
// 获取组织机构信息
|
116
|
// 获取组织机构信息
|
117
|
var organization *domain.Org
|
117
|
var organization *domain.Org
|
118
|
if data, err := organizationService.OrgFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId); err != nil {
|
118
|
if data, err := organizationService.OrgFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.OrgId); err != nil {
|
119
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
119
|
+ return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取组织机构信息失败")
|
120
|
} else {
|
120
|
} else {
|
121
|
organization = data
|
121
|
organization = data
|
122
|
}
|
122
|
}
|
123
|
|
123
|
|
124
|
- // 获取组织机构信息
|
124
|
+ // 获取部门信息
|
125
|
var department *domain.Org
|
125
|
var department *domain.Org
|
126
|
if data, err := organizationService.OrgFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.DepartmentId); err != nil {
|
126
|
if data, err := organizationService.OrgFrom(createCooperationProjectCommand.CompanyId, createCooperationProjectCommand.DepartmentId); err != nil {
|
127
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
127
|
+ return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取部门信息失败")
|
128
|
} else {
|
128
|
} else {
|
129
|
department = data
|
129
|
department = data
|
130
|
}
|
130
|
}
|