正在显示
5 个修改的文件
包含
11 行增加
和
11 行删除
| @@ -17,7 +17,7 @@ type CreateCooperationProjectCommand struct { | @@ -17,7 +17,7 @@ type CreateCooperationProjectCommand struct { | ||
| 17 | // 共创项目名称 | 17 | // 共创项目名称 |
| 18 | CooperationProjectName string `json:"cooperationProjectName" valid:"Required"` | 18 | CooperationProjectName string `json:"cooperationProjectName" valid:"Required"` |
| 19 | // 共创发起人id | 19 | // 共创发起人id |
| 20 | - CooperationProjectSponsor string `json:"cooperationProjectSponsor,string,"` | 20 | + CooperationProjectSponsor int `json:"cooperationProjectSponsor,string,"` |
| 21 | // 项目承接对象 | 21 | // 项目承接对象 |
| 22 | CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` | 22 | CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` |
| 23 | // 共创项目描述 | 23 | // 共创项目描述 |
| 1 | package service | 1 | package service |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | - "strconv" | ||
| 5 | - | ||
| 6 | "github.com/linmadan/egglib-go/core/application" | 4 | "github.com/linmadan/egglib-go/core/application" |
| 7 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/command" | 5 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/command" |
| 8 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/dto" | 6 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/dto" |
| @@ -23,10 +21,10 @@ func (srv CooperationProjectService) CreateCooperationProject(createCooperationP | @@ -23,10 +21,10 @@ func (srv CooperationProjectService) CreateCooperationProject(createCooperationP | ||
| 23 | result, err := creationCooperationGateway.CooperationProjectAdd(allied_creation_cooperation.ReqCooperationProjectAdd{ | 21 | result, err := creationCooperationGateway.CooperationProjectAdd(allied_creation_cooperation.ReqCooperationProjectAdd{ |
| 24 | CooperationProjectDescription: createCooperationProjectCommand.CooperationProjectDescription, | 22 | CooperationProjectDescription: createCooperationProjectCommand.CooperationProjectDescription, |
| 25 | CooperationProjectName: createCooperationProjectCommand.CooperationProjectName, | 23 | CooperationProjectName: createCooperationProjectCommand.CooperationProjectName, |
| 26 | - PublisherUid: strconv.Itoa(int(createCooperationProjectCommand.Operator.UserId)), | 24 | + PublisherUid: int(createCooperationProjectCommand.Operator.UserId), |
| 27 | SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor, | 25 | SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor, |
| 28 | CooperationProjectUndertakerType: createCooperationProjectCommand.CooperationProjectUndertakerType, | 26 | CooperationProjectUndertakerType: createCooperationProjectCommand.CooperationProjectUndertakerType, |
| 29 | - Images: createCooperationProjectCommand.Images, | 27 | + // Images: createCooperationProjectCommand.Images, |
| 30 | }) | 28 | }) |
| 31 | 29 | ||
| 32 | if err != nil { | 30 | if err != nil { |
| @@ -17,7 +17,7 @@ type CreateCooperationProjectCommand struct { | @@ -17,7 +17,7 @@ type CreateCooperationProjectCommand struct { | ||
| 17 | // 共创项目名称 | 17 | // 共创项目名称 |
| 18 | CooperationProjectName string `json:"cooperationProjectName" valid:"Required"` | 18 | CooperationProjectName string `json:"cooperationProjectName" valid:"Required"` |
| 19 | // 共创发起人id | 19 | // 共创发起人id |
| 20 | - CooperationProjectSponsor string `json:"cooperationProjectSponsor,string,"` | 20 | + CooperationProjectSponsor int `json:"cooperationProjectSponsor,string,"` |
| 21 | // 项目承接对象 | 21 | // 项目承接对象 |
| 22 | CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` | 22 | CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` |
| 23 | // 共创项目描述 | 23 | // 共创项目描述 |
| @@ -23,10 +23,11 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro | @@ -23,10 +23,11 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro | ||
| 23 | result, err := creationCooperationGateway.CooperationProjectAdd(allied_creation_cooperation.ReqCooperationProjectAdd{ | 23 | result, err := creationCooperationGateway.CooperationProjectAdd(allied_creation_cooperation.ReqCooperationProjectAdd{ |
| 24 | CooperationProjectDescription: createCooperationProjectCommand.CooperationProjectDescription, | 24 | CooperationProjectDescription: createCooperationProjectCommand.CooperationProjectDescription, |
| 25 | CooperationProjectName: createCooperationProjectCommand.CooperationProjectName, | 25 | CooperationProjectName: createCooperationProjectCommand.CooperationProjectName, |
| 26 | - PublisherUid: strconv.Itoa(int(createCooperationProjectCommand.Operator.UserId)), | 26 | + PublisherUid: int(createCooperationProjectCommand.Operator.UserId), |
| 27 | SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor, | 27 | SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor, |
| 28 | CooperationProjectUndertakerType: createCooperationProjectCommand.CooperationProjectUndertakerType, | 28 | CooperationProjectUndertakerType: createCooperationProjectCommand.CooperationProjectUndertakerType, |
| 29 | - Images: createCooperationProjectCommand.Images, | 29 | + // Images: createCooperationProjectCommand.Images, |
| 30 | + //TODO | ||
| 30 | }) | 31 | }) |
| 31 | 32 | ||
| 32 | if err != nil { | 33 | if err != nil { |
| @@ -62,10 +62,11 @@ type ( | @@ -62,10 +62,11 @@ type ( | ||
| 62 | ReqCooperationProjectAdd struct { | 62 | ReqCooperationProjectAdd struct { |
| 63 | CooperationProjectDescription string `json:"cooperationProjectDescription"` | 63 | CooperationProjectDescription string `json:"cooperationProjectDescription"` |
| 64 | CooperationProjectName string `json:"cooperationProjectName"` | 64 | CooperationProjectName string `json:"cooperationProjectName"` |
| 65 | - PublisherUid string `json:"publisherUid"` | ||
| 66 | - SponsorUid string `json:"sponsorUid"` | 65 | + PublisherUid int `json:"publisherUid,string"` |
| 66 | + SponsorUid int `json:"sponsorUid,string"` | ||
| 67 | + DepartmentId int `json:"departmentId,string"` | ||
| 67 | CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` | 68 | CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` |
| 68 | - Images []string `json:"images"` | 69 | + Attachment []ProjectAttachment `json:"attachment"` |
| 69 | } | 70 | } |
| 70 | 71 | ||
| 71 | DataCooperationProjectAdd struct { | 72 | DataCooperationProjectAdd struct { |
-
请 注册 或 登录 后发表评论