|
@@ -167,9 +167,61 @@ func (this *BaseCommonController) ListHomePublic() {
|
|
br.Data = resp
|
|
br.Data = resp
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// @Title 获取搜索推荐词
|
|
|
|
+// @Description 获取搜索推荐词
|
|
|
|
+// @Success 200 {object} models.ConfigResp
|
|
|
|
+// @router /home/detail [get]
|
|
|
|
+func (this *BaseCommonController) BrowseHistoryList() {
|
|
|
|
+ br := new(models.BaseResponse).Init()
|
|
|
|
+ defer func() {
|
|
|
|
+ this.Data["json"] = br
|
|
|
|
+ this.ServeJSON()
|
|
|
|
+ }()
|
|
|
|
+ resp := new(models.ConfigResp)
|
|
|
|
+ detail := new(models.CygxConfig)
|
|
|
|
+ //configCode := "hot_search"
|
|
|
|
+ //detail, err := models.GetConfigByCode(configCode)
|
|
|
|
+ hotSearch, err := models.GetHotSearch()
|
|
|
|
+ if err != nil {
|
|
|
|
+ br.Msg = "获取数据失败"
|
|
|
|
+ br.ErrMsg = "获取数据失败,Err:" + err.Error()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ chartList, err := models.GetChartListConfig()
|
|
|
|
+ if err != nil {
|
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
|
+ br.ErrMsg = "获取用户信息失败,Err:" + err.Error()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ for _, v := range chartList {
|
|
|
|
+ item := new(models.KeyWord)
|
|
|
|
+ item.KeyWord = v.Title
|
|
|
|
+ resp.List = append(resp.List, item)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ hotList, err := models.GetSearchKeyWordTop()
|
|
|
|
+ if err != nil {
|
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
|
+ br.ErrMsg = "获取用户信息失败,Err:" + err.Error()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ for _, v := range hotList {
|
|
|
|
+ item := new(models.KeyWord)
|
|
|
|
+ item.KeyWord = v.KeyWord
|
|
|
|
+ resp.ListHot = append(resp.ListHot, item)
|
|
|
|
+ }
|
|
|
|
+ detail.ConfigValue = hotSearch
|
|
|
|
+ resp.Item = detail
|
|
|
|
+ br.Msg = "获取成功!"
|
|
|
|
+ br.Ret = 200
|
|
|
|
+ br.Success = true
|
|
|
|
+ br.Data = resp
|
|
|
|
+}
|
|
|
|
+
|
|
// @Title 访谈申请(海通国际)
|
|
// @Title 访谈申请(海通国际)
|
|
// @Description 访谈申请(海通国际)
|
|
// @Description 访谈申请(海通国际)
|
|
-// @Param request body models.ArticleInterviewApplyReq true "type json string"
|
|
|
|
|
|
+// @Param request body models.ArticleInterviewApplyReqHtgj true "type json string"
|
|
// @Success 200 {object} models.FontsCollectResp
|
|
// @Success 200 {object} models.FontsCollectResp
|
|
// @router /interview/apply [post]
|
|
// @router /interview/apply [post]
|
|
func (this *BaseCommonController) InterviewApply() {
|
|
func (this *BaseCommonController) InterviewApply() {
|
|
@@ -293,7 +345,7 @@ func (this *BaseCommonController) InterviewApply() {
|
|
|
|
|
|
// @Title 收藏(海通国际)
|
|
// @Title 收藏(海通国际)
|
|
// @Description 收藏(海通国际)
|
|
// @Description 收藏(海通国际)
|
|
-// @Param request body models.ArticleCollectReq true "type json string"
|
|
|
|
|
|
+// @Param request body models.ArticleInterviewApplyReqHtgj true "type json string"
|
|
// @Success 200 {object} models.FontsCollectResp
|
|
// @Success 200 {object} models.FontsCollectResp
|
|
// @router /collect [post]
|
|
// @router /collect [post]
|
|
func (this *BaseCommonController) ArticleCollect() {
|
|
func (this *BaseCommonController) ArticleCollect() {
|
|
@@ -401,7 +453,7 @@ func (this *BaseCommonController) ArticleCollect() {
|
|
|
|
|
|
// @Title 文章带问(海通国际)
|
|
// @Title 文章带问(海通国际)
|
|
// @Description 新增文章带问接口(海通国际)
|
|
// @Description 新增文章带问接口(海通国际)
|
|
-// @Param request body models.AddArticleAskRep true "type json string"
|
|
|
|
|
|
+// @Param request body models.ArticleAskReqHtgj true "type json string"
|
|
// @Success Ret=200 新增成功
|
|
// @Success Ret=200 新增成功
|
|
// @router /askAdd [post]
|
|
// @router /askAdd [post]
|
|
func (this *BaseCommonController) AskAdd() {
|
|
func (this *BaseCommonController) AskAdd() {
|