feat:完善入驻信息管理
This commit is contained in:
@ -5,14 +5,15 @@ import "strings"
|
||||
type (
|
||||
// MemoryForIndustry 行业
|
||||
MemoryForIndustry struct {
|
||||
Name string `json:"name"`
|
||||
Children map[string]*MemoryForIndustry `json:"children"`
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
Children []*MemoryForIndustry `json:"children"`
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
// MemoryForIndustryInfo 行业信息
|
||||
MemoryForIndustryInfo map[string]*MemoryForIndustry = make(map[string]*MemoryForIndustry, 0)
|
||||
MemoryForIndustryInfo map[string]string = make(map[string]string, 0)
|
||||
)
|
||||
|
||||
// GetIndustryInfo 获取行业信息
|
||||
@ -21,7 +22,7 @@ func GetIndustryInfo(industry, mark string) string {
|
||||
out := make([]string, 0)
|
||||
|
||||
for _, v := range obj {
|
||||
out = append(out, MemoryForIndustryInfo[v].Name)
|
||||
out = append(out, MemoryForIndustryInfo[v])
|
||||
}
|
||||
return strings.Join(out, "-")
|
||||
}
|
||||
|
Reference in New Issue
Block a user