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, "-")
|
||||
}
|
||||
|
@ -11,7 +11,10 @@ type Area struct {
|
||||
type (
|
||||
// IdentityForCompany 公司附加信息
|
||||
IdentityForCompany struct {
|
||||
Url string `json:"url" form:"url"` // 企业网站
|
||||
Kinds []int `json:"kinds" form:"kinds"`
|
||||
Product string `json:"product" form:"product" binding:"required"`
|
||||
Url string `json:"url" form:"url"` // 企业网站
|
||||
License string `json:"license" form:"license" binding:"required"`
|
||||
}
|
||||
// IdentityForExpert 专家附加信息
|
||||
IdentityForExpert struct {
|
||||
|
Reference in New Issue
Block a user