feat:优化项目信息
This commit is contained in:
@ -13,9 +13,12 @@ type (
|
||||
AchievementInfo struct {
|
||||
ID string `json:"id"`
|
||||
*model.TechnologyAchievementInfo
|
||||
Customers []string `json:"customers"`
|
||||
Industrys []string `json:"industrys"`
|
||||
Keywords []string `json:"keywords"`
|
||||
ModeTitle string `json:"mode_title"`
|
||||
MaturityTitle string `json:"maturity_title"`
|
||||
CooperationModeTitle string `json:"cooperation_mode_title"`
|
||||
Customers []string `json:"customers"`
|
||||
Industrys []string `json:"industrys"`
|
||||
Keywords []string `json:"keywords"`
|
||||
}
|
||||
)
|
||||
|
||||
@ -63,7 +66,9 @@ func achievementSearch(page, pageSize int, keyword, industry string, params map[
|
||||
list = append(list, &AchievementInfo{
|
||||
ID: v.GetEncodeID(), TechnologyAchievementInfo: v,
|
||||
Customers: v.GetCustomerAttribute(),
|
||||
Industrys: _industrys, Keywords: v.GetKeywordAttribute(),
|
||||
ModeTitle: v.GetModeTitle(), MaturityTitle: config.GetTechnologyMaturityTitle(v.Maturity),
|
||||
CooperationModeTitle: config.GetTechnologyCooperationModeTitle(v.CooperationMode),
|
||||
Industrys: _industrys, Keywords: v.GetKeywordAttribute(),
|
||||
})
|
||||
}
|
||||
return &controller.ReturnPages{Data: list, Count: count}, nil
|
||||
|
Reference in New Issue
Block a user