zhangchuanxing hai 2 días
pai
achega
af684b6f53
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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   KeyWord   query   string  true       "搜索关键词"
 // @Param   OrderColumn   query   int  true       "排序字段 ,Comprehensive综合 ,Matching匹配度 ,PublishDate 发布时间 "
+// @Param   ListType   query   int  true       "列表类型,1最新/全部,2 纪要 ,3图表 默认1"
 // @Success 200 {object} models.SearchItem
 // @router /artAndChart/listPage [get]
 func (this *SearchController) ListHomeArtAndChartPage() {
@@ -499,7 +500,7 @@ func (this *SearchController) ListHomeArtAndChartPage() {
 	}()
 	pageSize, _ := this.GetInt("PageSize")
 	currentIndex, _ := this.GetInt("CurrentIndex")
-	// @Param   ListType   query   int  true       "列表类型,1最新/全部,2 纪要 ,3图表 默认1"
+
 	listType, _ := this.GetInt("ListType")
 	var startSize int
 	if pageSize <= 0 {
@@ -508,7 +509,7 @@ func (this *SearchController) ListHomeArtAndChartPage() {
 	if currentIndex <= 0 {
 		currentIndex = 1
 	}
-	listType = 1
+
 	startSize = paging.StartIndex(currentIndex, pageSize)
 	keyWord := this.GetString("KeyWord")
 	orderColumn := this.GetString("OrderColumn")