作者 tangxuhui

数据格式调整

@@ -21,7 +21,7 @@ type UpdateCooperationProjectCommand struct { @@ -21,7 +21,7 @@ type UpdateCooperationProjectCommand struct {
21 // 共创发起人id 21 // 共创发起人id
22 CooperationProjectSponsor string `json:"cooperationProjectSponsor,omitempty"` 22 CooperationProjectSponsor string `json:"cooperationProjectSponsor,omitempty"`
23 // 项目承接对象 23 // 项目承接对象
24 - CooperationProjectUndertakerType []int32 `json:"cooperationProjectUndertakerTypes,omitempty"` 24 + CooperationProjectUndertakerType []int32 `json:"cooperationProjectUndertakerType,omitempty"`
25 // 共创项目描述 25 // 共创项目描述
26 CooperationProjectDescription string `json:"cooperationProjectDescription" valid:"Required"` 26 CooperationProjectDescription string `json:"cooperationProjectDescription" valid:"Required"`
27 //图片 27 //图片
@@ -28,7 +28,7 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro @@ -28,7 +28,7 @@ func (cooperationProjectService *CooperationProjectService) CreateCooperationPro
28 PublisherUid: int(createCooperationProjectCommand.Operator.UserId), 28 PublisherUid: int(createCooperationProjectCommand.Operator.UserId),
29 SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor, 29 SponsorUid: createCooperationProjectCommand.CooperationProjectSponsor,
30 DepartmentId: int(createCooperationProjectCommand.DepartmentId), 30 DepartmentId: int(createCooperationProjectCommand.DepartmentId),
31 - CooperationProjectUndertakerType: createCooperationProjectCommand.CooperationProjectUndertakerType, 31 + CooperationProjectUndertakerTypes: createCooperationProjectCommand.CooperationProjectUndertakerType,
32 Attachment: createCooperationProjectCommand.Images, 32 Attachment: createCooperationProjectCommand.Images,
33 }) 33 })
34 34
@@ -138,7 +138,7 @@ func (cooperationProjectService *CooperationProjectService) UpdateCooperationPro @@ -138,7 +138,7 @@ func (cooperationProjectService *CooperationProjectService) UpdateCooperationPro
138 CooperationProjectId: updateCooperationProjectCommand.CooperationProjectId, 138 CooperationProjectId: updateCooperationProjectCommand.CooperationProjectId,
139 CooperationProjectName: updateCooperationProjectCommand.CooperationProjectName, 139 CooperationProjectName: updateCooperationProjectCommand.CooperationProjectName,
140 CooperationModeNumber: updateCooperationProjectCommand.CooperationModeNumber, 140 CooperationModeNumber: updateCooperationProjectCommand.CooperationModeNumber,
141 - CooperationProjectUndertakerType: updateCooperationProjectCommand.CooperationProjectUndertakerType, 141 + CooperationProjectUndertakerTypes: updateCooperationProjectCommand.CooperationProjectUndertakerType,
142 SponsorUid: updateCooperationProjectCommand.CooperationProjectSponsor, 142 SponsorUid: updateCooperationProjectCommand.CooperationProjectSponsor,
143 PublisherUid: strconv.Itoa(int(updateCooperationProjectCommand.Operator.UserId)), 143 PublisherUid: strconv.Itoa(int(updateCooperationProjectCommand.Operator.UserId)),
144 CooperationProjectDescription: updateCooperationProjectCommand.CooperationProjectDescription, 144 CooperationProjectDescription: updateCooperationProjectCommand.CooperationProjectDescription,
@@ -71,7 +71,7 @@ type ( @@ -71,7 +71,7 @@ type (
71 PublisherUid int `json:"publisherUid,string"` 71 PublisherUid int `json:"publisherUid,string"`
72 SponsorUid int `json:"sponsorUid,string"` 72 SponsorUid int `json:"sponsorUid,string"`
73 DepartmentId int `json:"departmentId"` 73 DepartmentId int `json:"departmentId"`
74 - CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerTypes"` 74 + CooperationProjectUndertakerTypes []int `json:"cooperationProjectUndertakerTypes"`
75 Attachment []*domain.Attachment `json:"attachment"` 75 Attachment []*domain.Attachment `json:"attachment"`
76 } 76 }
77 77
@@ -110,7 +110,7 @@ type ( @@ -110,7 +110,7 @@ type (
110 CooperationProjectName string `json:"cooperationProjectName"` 110 CooperationProjectName string `json:"cooperationProjectName"`
111 CooperationModeNumber string `json:"cooperationModeNumber"` 111 CooperationModeNumber string `json:"cooperationModeNumber"`
112 // 承接对象,1员工,2共创用户,3公开,可以多选 112 // 承接对象,1员工,2共创用户,3公开,可以多选
113 - CooperationProjectUndertakerType []int32 `json:"cooperationProjectUndertakerTypes"` 113 + CooperationProjectUndertakerTypes []int32 `json:"cooperationProjectUndertakerTypes"`
114 // 共创项目发起人uid 114 // 共创项目发起人uid
115 SponsorUid string `json:"sponsorUid"` 115 SponsorUid string `json:"sponsorUid"`
116 // 共创项目发布人uid 116 // 共创项目发布人uid