zhangchuanxing 3 zile în urmă
părinte
comite
af684b6f53
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      controllers/search.go

+ 3 - 2
controllers/search.go

@@ -489,6 +489,7 @@ func (this *SearchController) ListHomeArtAndChart() {
 // @Param   CurrentIndex   query   int  true       "当前页页码,从1开始"
 // @Param   CurrentIndex   query   int  true       "当前页页码,从1开始"
 // @Param   KeyWord   query   string  true       "搜索关键词"
 // @Param   KeyWord   query   string  true       "搜索关键词"
 // @Param   OrderColumn   query   int  true       "排序字段 ,Comprehensive综合 ,Matching匹配度 ,PublishDate 发布时间 "
 // @Param   OrderColumn   query   int  true       "排序字段 ,Comprehensive综合 ,Matching匹配度 ,PublishDate 发布时间 "
+// @Param   ListType   query   int  true       "列表类型,1最新/全部,2 纪要 ,3图表 默认1"
 // @Success 200 {object} models.SearchItem
 // @Success 200 {object} models.SearchItem
 // @router /artAndChart/listPage [get]
 // @router /artAndChart/listPage [get]
 func (this *SearchController) ListHomeArtAndChartPage() {
 func (this *SearchController) ListHomeArtAndChartPage() {
@@ -499,7 +500,7 @@ func (this *SearchController) ListHomeArtAndChartPage() {
 	}()
 	}()
 	pageSize, _ := this.GetInt("PageSize")
 	pageSize, _ := this.GetInt("PageSize")
 	currentIndex, _ := this.GetInt("CurrentIndex")
 	currentIndex, _ := this.GetInt("CurrentIndex")
-	// @Param   ListType   query   int  true       "列表类型,1最新/全部,2 纪要 ,3图表 默认1"
+
 	listType, _ := this.GetInt("ListType")
 	listType, _ := this.GetInt("ListType")
 	var startSize int
 	var startSize int
 	if pageSize <= 0 {
 	if pageSize <= 0 {
@@ -508,7 +509,7 @@ func (this *SearchController) ListHomeArtAndChartPage() {
 	if currentIndex <= 0 {
 	if currentIndex <= 0 {
 		currentIndex = 1
 		currentIndex = 1
 	}
 	}
-	listType = 1
+
 	startSize = paging.StartIndex(currentIndex, pageSize)
 	startSize = paging.StartIndex(currentIndex, pageSize)
 	keyWord := this.GetString("KeyWord")
 	keyWord := this.GetString("KeyWord")
 	orderColumn := this.GetString("OrderColumn")
 	orderColumn := this.GetString("OrderColumn")