作者 tangxuhui

返回数据调整

... ... @@ -38,14 +38,14 @@ func (srv CooperationProjectService) CreateCooperationProject(createCooperationP
if err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
data := struct {
CooperationProjectId int `json:"cooperationProjectId"`
command.CreateCooperationProjectCommand
}{
CooperationProjectId: result.CooperationProjectId,
CreateCooperationProjectCommand: *createCooperationProjectCommand,
}
return data, nil
// data := struct {
// CooperationProjectId int `json:"cooperationProjectId"`
// command.CreateCooperationProjectCommand
// }{
// CooperationProjectId: result.CooperationProjectId,
// CreateCooperationProjectCommand: *createCooperationProjectCommand,
// }
return dto.ToCooperationProjectInfo(&result.CooperationProject), nil
}
// GetCooperationProject 返回共创项目明细
... ...