...
|
...
|
@@ -61,15 +61,15 @@ func (company *Company) Update(data map[string]interface{}) error { |
|
|
if industryCategory, ok := data["industryCategory"]; ok {
|
|
|
company.CompanyInfo.IndustryCategory = industryCategory.(string)
|
|
|
}
|
|
|
if contacts, ok := data["contacts"]; ok {
|
|
|
company.CompanyInfo.Contacts = contacts.(string)
|
|
|
}
|
|
|
//if contacts, ok := data["contacts"]; ok {
|
|
|
// company.CompanyInfo.Contacts = contacts.(string)
|
|
|
//}
|
|
|
if registTime, ok := data["registTime"]; ok {
|
|
|
company.CompanyInfo.RegisteredTime = registTime.(time.Time)
|
|
|
}
|
|
|
if registStatus, ok := data["registStatus"]; ok {
|
|
|
company.CompanyInfo.status = registStatus.(int)
|
|
|
}
|
|
|
//if registStatus, ok := data["registStatus"]; ok {
|
|
|
// company.CompanyInfo.Status = registStatus.(int)
|
|
|
//}
|
|
|
if status, ok := data["status"]; ok {
|
|
|
company.Status = status.(int)
|
|
|
}
|
...
|
...
|
|