feat:完善项目信息
This commit is contained in:
@ -18,8 +18,14 @@ var (
|
||||
MemoryForIndustryInfo map[string]string = make(map[string]string, 0)
|
||||
)
|
||||
|
||||
// Industry 行业信息
|
||||
type Industry struct {
|
||||
Key string `json:"key"`
|
||||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
// GetIndustryInfo 获取行业信息
|
||||
func GetIndustryInfo(industry, mark, sep string) string {
|
||||
func GetIndustryInfo(industry, mark, sep string) *Industry {
|
||||
obj := strings.Split(industry, mark)
|
||||
out := make([]string, 0)
|
||||
|
||||
@ -31,5 +37,9 @@ func GetIndustryInfo(industry, mark, sep string) string {
|
||||
}
|
||||
out = append(out, data)
|
||||
}
|
||||
return strings.Join(out, sep)
|
||||
//return strings.Join(out, sep)
|
||||
return &Industry{
|
||||
Key: industry,
|
||||
Value: strings.Join(out, sep),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user