feat:完善项目信息
This commit is contained in:
@ -50,6 +50,18 @@ func (m *ManageCompany) TableName() string {
|
||||
return "manage_company"
|
||||
}
|
||||
|
||||
func (m *ManageCompany) KindTitle() string {
|
||||
switch m.Kind {
|
||||
case ManageCompanyKindForListedEnterprise:
|
||||
return "上市企业"
|
||||
case ManageCompanyKindForHighQuality:
|
||||
return "优质企业"
|
||||
case ManageCompanyKindForOrdinary:
|
||||
return "普通企业"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ManageCompany) GetIndustryAttribute() []string {
|
||||
out := make([]string, 0)
|
||||
_ = utils.FromJSON(m.Industry, &out)
|
||||
|
@ -69,6 +69,20 @@ func (m *TechnologyProduct) TableName() string {
|
||||
return "technology_product"
|
||||
}
|
||||
|
||||
func (m *TechnologyProduct) GetLeadStandardTitle() string {
|
||||
switch m.LeadStandard {
|
||||
case TechnologyProductLeadStandardForDomesticXJ:
|
||||
return "国内先进"
|
||||
case TechnologyProductLeadStandardForDomesticLX:
|
||||
return "国内领先"
|
||||
case TechnologyProductLeadStandardForInternationalXJ:
|
||||
return "国际先进"
|
||||
case TechnologyProductLeadStandardForInternationalLX:
|
||||
return "国际领先"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TechnologyProduct) GetIndustryAttribute() []string {
|
||||
out := make([]string, 0)
|
||||
_ = json.Unmarshal([]byte(m.Industry), &out)
|
||||
|
Reference in New Issue
Block a user