|
@@ -23,6 +23,7 @@ type MicroRoadShowController struct {
|
|
// @Param AudioId query int false "音频ID"
|
|
// @Param AudioId query int false "音频ID"
|
|
// @Param VideoId query int false "视频ID"
|
|
// @Param VideoId query int false "视频ID"
|
|
// @Param ActivityVideoId query int false "活动视频ID"
|
|
// @Param ActivityVideoId query int false "活动视频ID"
|
|
|
|
+// @Param Filter query int false "筛选条件 0:全部 1:视频 2:音频"
|
|
// @Success 200 {object} models.HomeListResp
|
|
// @Success 200 {object} models.HomeListResp
|
|
// @router /list [get]
|
|
// @router /list [get]
|
|
func (this *MicroRoadShowController) List() {
|
|
func (this *MicroRoadShowController) List() {
|
|
@@ -44,6 +45,7 @@ func (this *MicroRoadShowController) List() {
|
|
audioId, _ := this.GetInt("AudioId")
|
|
audioId, _ := this.GetInt("AudioId")
|
|
videoId, _ := this.GetInt("VideoId")
|
|
videoId, _ := this.GetInt("VideoId")
|
|
activityVideoId, _ := this.GetInt("ActivityVideoId")
|
|
activityVideoId, _ := this.GetInt("ActivityVideoId")
|
|
|
|
+ filter, _ := this.GetInt("Filter", 0)
|
|
|
|
|
|
if pageSize <= 0 {
|
|
if pageSize <= 0 {
|
|
pageSize = utils.PageSize20
|
|
pageSize = utils.PageSize20
|
|
@@ -53,7 +55,7 @@ func (this *MicroRoadShowController) List() {
|
|
}
|
|
}
|
|
|
|
|
|
// 微路演列表
|
|
// 微路演列表
|
|
- list, total, e := services.GetMicroRoadShowPageListV8(pageSize, currentIndex, audioId, videoId, activityVideoId, keywords)
|
|
|
|
|
|
+ list, total, e := services.GetMicroRoadShowPageListV8(pageSize, currentIndex, audioId, videoId, activityVideoId, filter, keywords)
|
|
if e != nil {
|
|
if e != nil {
|
|
br.Msg = "获取失败"
|
|
br.Msg = "获取失败"
|
|
br.ErrMsg = "获取微路演列表失败, Err: " + e.Error()
|
|
br.ErrMsg = "获取微路演列表失败, Err: " + e.Error()
|