|
@@ -71,90 +71,90 @@ func (cooperationProject *CooperationProject) Update(data map[string]interface{} |
|
@@ -71,90 +71,90 @@ func (cooperationProject *CooperationProject) Update(data map[string]interface{} |
71
|
if cooperationProjectPublishTime, ok := data["cooperationProjectPublishTime"]; ok {
|
71
|
if cooperationProjectPublishTime, ok := data["cooperationProjectPublishTime"]; ok {
|
72
|
cooperationProject.CooperationProjectPublishTime = cooperationProjectPublishTime.(time.Time)
|
72
|
cooperationProject.CooperationProjectPublishTime = cooperationProjectPublishTime.(time.Time)
|
73
|
}
|
73
|
}
|
74
|
- if userId, ok := data["userId"]; ok {
|
|
|
75
|
- cooperationProject.CooperationProjectPublisher.UserId = userId.(int64)
|
|
|
76
|
- }
|
|
|
77
|
- if userBaseId, ok := data["userBaseId"]; ok {
|
|
|
78
|
- cooperationProject.CooperationProjectPublisher.UserBaseId = userBaseId.(int64)
|
|
|
79
|
- }
|
|
|
80
|
- if orgId, ok := data["orgId"]; ok {
|
|
|
81
|
- cooperationProject.CooperationProjectPublisher.Org.OrgId = orgId.(int64)
|
|
|
82
|
- }
|
|
|
83
|
- if orgName, ok := data["orgName"]; ok {
|
|
|
84
|
- cooperationProject.CooperationProjectPublisher.Org.OrgName = orgName.(string)
|
|
|
85
|
- }
|
|
|
86
|
- if companyId, ok := data["companyId"]; ok {
|
|
|
87
|
- cooperationProject.CooperationProjectPublisher.Org.Company.CompanyId = companyId.(int64)
|
|
|
88
|
- }
|
|
|
89
|
- if companyLogo, ok := data["companyLogo"]; ok {
|
|
|
90
|
- cooperationProject.CooperationProjectPublisher.Org.Company.CompanyLogo = companyLogo.(string)
|
|
|
91
|
- }
|
|
|
92
|
- if companyName, ok := data["companyName"]; ok {
|
|
|
93
|
- cooperationProject.CooperationProjectPublisher.Org.Company.CompanyName = companyName.(string)
|
|
|
94
|
- }
|
|
|
95
|
- if orgs, ok := data["orgs"]; ok {
|
|
|
96
|
- cooperationProject.CooperationProjectPublisher.Orgs = orgs.([]*Org)
|
|
|
97
|
- }
|
|
|
98
|
- if departmentId, ok := data["departmentId"]; ok {
|
|
|
99
|
- cooperationProject.CooperationProjectPublisher.Department.DepartmentId = departmentId.(int64)
|
|
|
100
|
- }
|
|
|
101
|
- if departmentName, ok := data["departmentName"]; ok {
|
|
|
102
|
- cooperationProject.CooperationProjectPublisher.Department.DepartmentName = departmentName.(string)
|
|
|
103
|
- }
|
|
|
104
|
- if departmentNumber, ok := data["departmentNumber"]; ok {
|
|
|
105
|
- cooperationProject.CooperationProjectPublisher.Department.DepartmentNumber = departmentNumber.(string)
|
|
|
106
|
- }
|
|
|
107
|
- if isOrganization, ok := data["isOrganization"]; ok {
|
|
|
108
|
- cooperationProject.CooperationProjectPublisher.Department.IsOrganization = isOrganization.(bool)
|
|
|
109
|
- }
|
|
|
110
|
- if userAvatar, ok := data["userAvatar"]; ok {
|
|
|
111
|
- cooperationProject.CooperationProjectPublisher.UserInfo.UserAvatar = userAvatar.(string)
|
|
|
112
|
- }
|
|
|
113
|
- if userEmail, ok := data["userEmail"]; ok {
|
|
|
114
|
- cooperationProject.CooperationProjectPublisher.UserInfo.UserEmail = userEmail.(string)
|
|
|
115
|
- }
|
|
|
116
|
- if userName, ok := data["userName"]; ok {
|
|
|
117
|
- cooperationProject.CooperationProjectPublisher.UserInfo.UserName = userName.(string)
|
|
|
118
|
- }
|
|
|
119
|
- if userPhone, ok := data["userPhone"]; ok {
|
|
|
120
|
- cooperationProject.CooperationProjectPublisher.UserInfo.UserPhone = userPhone.(string)
|
|
|
121
|
- }
|
|
|
122
|
- if userAccount, ok := data["userAccount"]; ok {
|
|
|
123
|
- cooperationProject.CooperationProjectPublisher.UserInfo.UserAccount = userAccount.(string)
|
|
|
124
|
- }
|
|
|
125
|
- if userType, ok := data["userType"]; ok {
|
|
|
126
|
- cooperationProject.CooperationProjectPublisher.UserType = userType.(int32)
|
|
|
127
|
- }
|
|
|
128
|
- if status, ok := data["status"]; ok {
|
|
|
129
|
- cooperationProject.CooperationProjectPublisher.Status = status.(int32)
|
|
|
130
|
- }
|
|
|
131
|
- if companyId, ok := data["companyId"]; ok {
|
|
|
132
|
- cooperationProject.CooperationProjectPublisher.Company.CompanyId = companyId.(int64)
|
|
|
133
|
- }
|
|
|
134
|
- if companyLogo, ok := data["companyLogo"]; ok {
|
|
|
135
|
- cooperationProject.CooperationProjectPublisher.Company.CompanyLogo = companyLogo.(string)
|
|
|
136
|
- }
|
|
|
137
|
- if companyName, ok := data["companyName"]; ok {
|
|
|
138
|
- cooperationProject.CooperationProjectPublisher.Company.CompanyName = companyName.(string)
|
|
|
139
|
- }
|
|
|
140
|
- if userId, ok := data["userId"]; ok {
|
|
|
141
|
- cooperationProject.CooperationProjectSponsor.UserId = userId.(int64)
|
|
|
142
|
- }
|
|
|
143
|
- if userBaseId, ok := data["userBaseId"]; ok {
|
|
|
144
|
- cooperationProject.CooperationProjectSponsor.UserBaseId = userBaseId.(int64)
|
|
|
145
|
- }
|
|
|
146
|
- if orgId, ok := data["orgId"]; ok {
|
|
|
147
|
- cooperationProject.CooperationProjectSponsor.Org.OrgId = orgId.(int64)
|
|
|
148
|
- }
|
|
|
149
|
- if orgName, ok := data["orgName"]; ok {
|
|
|
150
|
- cooperationProject.CooperationProjectSponsor.Org.OrgName = orgName.(string)
|
|
|
151
|
- }
|
|
|
152
|
- if companyId, ok := data["companyId"]; ok {
|
|
|
153
|
- cooperationProject.CooperationProjectSponsor.Company.CompanyId = companyId.(int64)
|
|
|
154
|
- }
|
|
|
155
|
- if cooperationProjectUndertakerType, ok := data["cooperationProjectUndertakerType"]; ok {
|
|
|
156
|
- cooperationProject.CooperationProjectUndertakerTypes = cooperationProjectUndertakerType.([]int32)
|
|
|
157
|
- }
|
74
|
+ //if userId, ok := data["userId"]; ok {
|
|
|
75
|
+ // cooperationProject.CooperationProjectPublisher.UserId = userId.(int64)
|
|
|
76
|
+ //}
|
|
|
77
|
+ //if userBaseId, ok := data["userBaseId"]; ok {
|
|
|
78
|
+ // cooperationProject.CooperationProjectPublisher.UserBaseId = userBaseId.(int64)
|
|
|
79
|
+ //}
|
|
|
80
|
+ //if orgId, ok := data["orgId"]; ok {
|
|
|
81
|
+ // cooperationProject.CooperationProjectPublisher.Org.OrgId = orgId.(int64)
|
|
|
82
|
+ //}
|
|
|
83
|
+ //if orgName, ok := data["orgName"]; ok {
|
|
|
84
|
+ // cooperationProject.CooperationProjectPublisher.Org.OrgName = orgName.(string)
|
|
|
85
|
+ //}
|
|
|
86
|
+ //if companyId, ok := data["companyId"]; ok {
|
|
|
87
|
+ // cooperationProject.CooperationProjectPublisher.Org.Company.CompanyId = companyId.(int64)
|
|
|
88
|
+ //}
|
|
|
89
|
+ //if companyLogo, ok := data["companyLogo"]; ok {
|
|
|
90
|
+ // cooperationProject.CooperationProjectPublisher.Org.Company.CompanyLogo = companyLogo.(string)
|
|
|
91
|
+ //}
|
|
|
92
|
+ //if companyName, ok := data["companyName"]; ok {
|
|
|
93
|
+ // cooperationProject.CooperationProjectPublisher.Org.Company.CompanyName = companyName.(string)
|
|
|
94
|
+ //}
|
|
|
95
|
+ //if orgs, ok := data["orgs"]; ok {
|
|
|
96
|
+ // cooperationProject.CooperationProjectPublisher.Orgs = orgs.([]*Org)
|
|
|
97
|
+ //}
|
|
|
98
|
+ //if departmentId, ok := data["departmentId"]; ok {
|
|
|
99
|
+ // cooperationProject.CooperationProjectPublisher.Department.DepartmentId = departmentId.(int64)
|
|
|
100
|
+ //}
|
|
|
101
|
+ //if departmentName, ok := data["departmentName"]; ok {
|
|
|
102
|
+ // cooperationProject.CooperationProjectPublisher.Department.DepartmentName = departmentName.(string)
|
|
|
103
|
+ //}
|
|
|
104
|
+ //if departmentNumber, ok := data["departmentNumber"]; ok {
|
|
|
105
|
+ // cooperationProject.CooperationProjectPublisher.Department.DepartmentNumber = departmentNumber.(string)
|
|
|
106
|
+ //}
|
|
|
107
|
+ //if isOrganization, ok := data["isOrganization"]; ok {
|
|
|
108
|
+ // cooperationProject.CooperationProjectPublisher.Department.IsOrganization = isOrganization.(bool)
|
|
|
109
|
+ //}
|
|
|
110
|
+ //if userAvatar, ok := data["userAvatar"]; ok {
|
|
|
111
|
+ // cooperationProject.CooperationProjectPublisher.UserInfo.UserAvatar = userAvatar.(string)
|
|
|
112
|
+ //}
|
|
|
113
|
+ //if userEmail, ok := data["userEmail"]; ok {
|
|
|
114
|
+ // cooperationProject.CooperationProjectPublisher.UserInfo.UserEmail = userEmail.(string)
|
|
|
115
|
+ //}
|
|
|
116
|
+ //if userName, ok := data["userName"]; ok {
|
|
|
117
|
+ // cooperationProject.CooperationProjectPublisher.UserInfo.UserName = userName.(string)
|
|
|
118
|
+ //}
|
|
|
119
|
+ //if userPhone, ok := data["userPhone"]; ok {
|
|
|
120
|
+ // cooperationProject.CooperationProjectPublisher.UserInfo.UserPhone = userPhone.(string)
|
|
|
121
|
+ //}
|
|
|
122
|
+ //if userAccount, ok := data["userAccount"]; ok {
|
|
|
123
|
+ // cooperationProject.CooperationProjectPublisher.UserInfo.UserAccount = userAccount.(string)
|
|
|
124
|
+ //}
|
|
|
125
|
+ //if userType, ok := data["userType"]; ok {
|
|
|
126
|
+ // cooperationProject.CooperationProjectPublisher.UserType = userType.(int32)
|
|
|
127
|
+ //}
|
|
|
128
|
+ //if status, ok := data["status"]; ok {
|
|
|
129
|
+ // cooperationProject.CooperationProjectPublisher.Status = status.(int32)
|
|
|
130
|
+ //}
|
|
|
131
|
+ //if companyId, ok := data["companyId"]; ok {
|
|
|
132
|
+ // cooperationProject.CooperationProjectPublisher.Company.CompanyId = companyId.(int64)
|
|
|
133
|
+ //}
|
|
|
134
|
+ //if companyLogo, ok := data["companyLogo"]; ok {
|
|
|
135
|
+ // cooperationProject.CooperationProjectPublisher.Company.CompanyLogo = companyLogo.(string)
|
|
|
136
|
+ //}
|
|
|
137
|
+ //if companyName, ok := data["companyName"]; ok {
|
|
|
138
|
+ // cooperationProject.CooperationProjectPublisher.Company.CompanyName = companyName.(string)
|
|
|
139
|
+ //}
|
|
|
140
|
+ //if userId, ok := data["userId"]; ok {
|
|
|
141
|
+ // cooperationProject.CooperationProjectSponsor.UserId = userId.(int64)
|
|
|
142
|
+ //}
|
|
|
143
|
+ //if userBaseId, ok := data["userBaseId"]; ok {
|
|
|
144
|
+ // cooperationProject.CooperationProjectSponsor.UserBaseId = userBaseId.(int64)
|
|
|
145
|
+ //}
|
|
|
146
|
+ //if orgId, ok := data["orgId"]; ok {
|
|
|
147
|
+ // cooperationProject.CooperationProjectSponsor.Org.OrgId = orgId.(int64)
|
|
|
148
|
+ //}
|
|
|
149
|
+ //if orgName, ok := data["orgName"]; ok {
|
|
|
150
|
+ // cooperationProject.CooperationProjectSponsor.Org.OrgName = orgName.(string)
|
|
|
151
|
+ //}
|
|
|
152
|
+ //if companyId, ok := data["companyId"]; ok {
|
|
|
153
|
+ // cooperationProject.CooperationProjectSponsor.Company.CompanyId = companyId.(int64)
|
|
|
154
|
+ //}
|
|
|
155
|
+ //if cooperationProjectUndertakerType, ok := data["cooperationProjectUndertakerType"]; ok {
|
|
|
156
|
+ // cooperationProject.CooperationProjectUndertakerTypes = cooperationProjectUndertakerType.([]int32)
|
|
|
157
|
+ //}
|
158
|
if operateTime, ok := data["operateTime"]; ok {
|
158
|
if operateTime, ok := data["operateTime"]; ok {
|
159
|
cooperationProject.OperateTime = operateTime.(time.Time)
|
159
|
cooperationProject.OperateTime = operateTime.(time.Time)
|
160
|
}
|
160
|
}
|