...
|
...
|
@@ -71,90 +71,90 @@ func (cooperationProject *CooperationProject) Update(data map[string]interface{} |
|
|
if cooperationProjectPublishTime, ok := data["cooperationProjectPublishTime"]; ok {
|
|
|
cooperationProject.CooperationProjectPublishTime = cooperationProjectPublishTime.(time.Time)
|
|
|
}
|
|
|
if userId, ok := data["userId"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.UserId = userId.(int64)
|
|
|
}
|
|
|
if userBaseId, ok := data["userBaseId"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.UserBaseId = userBaseId.(int64)
|
|
|
}
|
|
|
if orgId, ok := data["orgId"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Org.OrgId = orgId.(int64)
|
|
|
}
|
|
|
if orgName, ok := data["orgName"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Org.OrgName = orgName.(string)
|
|
|
}
|
|
|
if companyId, ok := data["companyId"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Org.Company.CompanyId = companyId.(int64)
|
|
|
}
|
|
|
if companyLogo, ok := data["companyLogo"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Org.Company.CompanyLogo = companyLogo.(string)
|
|
|
}
|
|
|
if companyName, ok := data["companyName"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Org.Company.CompanyName = companyName.(string)
|
|
|
}
|
|
|
if orgs, ok := data["orgs"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Orgs = orgs.([]*Org)
|
|
|
}
|
|
|
if departmentId, ok := data["departmentId"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Department.DepartmentId = departmentId.(int64)
|
|
|
}
|
|
|
if departmentName, ok := data["departmentName"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Department.DepartmentName = departmentName.(string)
|
|
|
}
|
|
|
if departmentNumber, ok := data["departmentNumber"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Department.DepartmentNumber = departmentNumber.(string)
|
|
|
}
|
|
|
if isOrganization, ok := data["isOrganization"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Department.IsOrganization = isOrganization.(bool)
|
|
|
}
|
|
|
if userAvatar, ok := data["userAvatar"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.UserInfo.UserAvatar = userAvatar.(string)
|
|
|
}
|
|
|
if userEmail, ok := data["userEmail"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.UserInfo.UserEmail = userEmail.(string)
|
|
|
}
|
|
|
if userName, ok := data["userName"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.UserInfo.UserName = userName.(string)
|
|
|
}
|
|
|
if userPhone, ok := data["userPhone"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.UserInfo.UserPhone = userPhone.(string)
|
|
|
}
|
|
|
if userAccount, ok := data["userAccount"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.UserInfo.UserAccount = userAccount.(string)
|
|
|
}
|
|
|
if userType, ok := data["userType"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.UserType = userType.(int32)
|
|
|
}
|
|
|
if status, ok := data["status"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Status = status.(int32)
|
|
|
}
|
|
|
if companyId, ok := data["companyId"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Company.CompanyId = companyId.(int64)
|
|
|
}
|
|
|
if companyLogo, ok := data["companyLogo"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Company.CompanyLogo = companyLogo.(string)
|
|
|
}
|
|
|
if companyName, ok := data["companyName"]; ok {
|
|
|
cooperationProject.CooperationProjectPublisher.Company.CompanyName = companyName.(string)
|
|
|
}
|
|
|
if userId, ok := data["userId"]; ok {
|
|
|
cooperationProject.CooperationProjectSponsor.UserId = userId.(int64)
|
|
|
}
|
|
|
if userBaseId, ok := data["userBaseId"]; ok {
|
|
|
cooperationProject.CooperationProjectSponsor.UserBaseId = userBaseId.(int64)
|
|
|
}
|
|
|
if orgId, ok := data["orgId"]; ok {
|
|
|
cooperationProject.CooperationProjectSponsor.Org.OrgId = orgId.(int64)
|
|
|
}
|
|
|
if orgName, ok := data["orgName"]; ok {
|
|
|
cooperationProject.CooperationProjectSponsor.Org.OrgName = orgName.(string)
|
|
|
}
|
|
|
if companyId, ok := data["companyId"]; ok {
|
|
|
cooperationProject.CooperationProjectSponsor.Company.CompanyId = companyId.(int64)
|
|
|
}
|
|
|
if cooperationProjectUndertakerType, ok := data["cooperationProjectUndertakerType"]; ok {
|
|
|
cooperationProject.CooperationProjectUndertakerTypes = cooperationProjectUndertakerType.([]int32)
|
|
|
}
|
|
|
//if userId, ok := data["userId"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.UserId = userId.(int64)
|
|
|
//}
|
|
|
//if userBaseId, ok := data["userBaseId"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.UserBaseId = userBaseId.(int64)
|
|
|
//}
|
|
|
//if orgId, ok := data["orgId"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Org.OrgId = orgId.(int64)
|
|
|
//}
|
|
|
//if orgName, ok := data["orgName"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Org.OrgName = orgName.(string)
|
|
|
//}
|
|
|
//if companyId, ok := data["companyId"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Org.Company.CompanyId = companyId.(int64)
|
|
|
//}
|
|
|
//if companyLogo, ok := data["companyLogo"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Org.Company.CompanyLogo = companyLogo.(string)
|
|
|
//}
|
|
|
//if companyName, ok := data["companyName"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Org.Company.CompanyName = companyName.(string)
|
|
|
//}
|
|
|
//if orgs, ok := data["orgs"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Orgs = orgs.([]*Org)
|
|
|
//}
|
|
|
//if departmentId, ok := data["departmentId"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Department.DepartmentId = departmentId.(int64)
|
|
|
//}
|
|
|
//if departmentName, ok := data["departmentName"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Department.DepartmentName = departmentName.(string)
|
|
|
//}
|
|
|
//if departmentNumber, ok := data["departmentNumber"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Department.DepartmentNumber = departmentNumber.(string)
|
|
|
//}
|
|
|
//if isOrganization, ok := data["isOrganization"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Department.IsOrganization = isOrganization.(bool)
|
|
|
//}
|
|
|
//if userAvatar, ok := data["userAvatar"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.UserInfo.UserAvatar = userAvatar.(string)
|
|
|
//}
|
|
|
//if userEmail, ok := data["userEmail"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.UserInfo.UserEmail = userEmail.(string)
|
|
|
//}
|
|
|
//if userName, ok := data["userName"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.UserInfo.UserName = userName.(string)
|
|
|
//}
|
|
|
//if userPhone, ok := data["userPhone"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.UserInfo.UserPhone = userPhone.(string)
|
|
|
//}
|
|
|
//if userAccount, ok := data["userAccount"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.UserInfo.UserAccount = userAccount.(string)
|
|
|
//}
|
|
|
//if userType, ok := data["userType"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.UserType = userType.(int32)
|
|
|
//}
|
|
|
//if status, ok := data["status"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Status = status.(int32)
|
|
|
//}
|
|
|
//if companyId, ok := data["companyId"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Company.CompanyId = companyId.(int64)
|
|
|
//}
|
|
|
//if companyLogo, ok := data["companyLogo"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Company.CompanyLogo = companyLogo.(string)
|
|
|
//}
|
|
|
//if companyName, ok := data["companyName"]; ok {
|
|
|
// cooperationProject.CooperationProjectPublisher.Company.CompanyName = companyName.(string)
|
|
|
//}
|
|
|
//if userId, ok := data["userId"]; ok {
|
|
|
// cooperationProject.CooperationProjectSponsor.UserId = userId.(int64)
|
|
|
//}
|
|
|
//if userBaseId, ok := data["userBaseId"]; ok {
|
|
|
// cooperationProject.CooperationProjectSponsor.UserBaseId = userBaseId.(int64)
|
|
|
//}
|
|
|
//if orgId, ok := data["orgId"]; ok {
|
|
|
// cooperationProject.CooperationProjectSponsor.Org.OrgId = orgId.(int64)
|
|
|
//}
|
|
|
//if orgName, ok := data["orgName"]; ok {
|
|
|
// cooperationProject.CooperationProjectSponsor.Org.OrgName = orgName.(string)
|
|
|
//}
|
|
|
//if companyId, ok := data["companyId"]; ok {
|
|
|
// cooperationProject.CooperationProjectSponsor.Company.CompanyId = companyId.(int64)
|
|
|
//}
|
|
|
//if cooperationProjectUndertakerType, ok := data["cooperationProjectUndertakerType"]; ok {
|
|
|
// cooperationProject.CooperationProjectUndertakerTypes = cooperationProjectUndertakerType.([]int32)
|
|
|
//}
|
|
|
if operateTime, ok := data["operateTime"]; ok {
|
|
|
cooperationProject.OperateTime = operateTime.(time.Time)
|
|
|
}
|
...
|
...
|
|