feat:完善项目信息

This commit is contained in:
henry
2022-01-20 15:49:44 +08:00
parent b87cd837be
commit bfa9af1654
8 changed files with 110 additions and 11 deletions

View File

@ -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)