|
@@ -12,10 +12,11 @@ import (
|
|
|
// VideoList 视频列表
|
|
|
// @Tags 视频社区模块
|
|
|
// @Description 获取视频社区列表
|
|
|
-// @Param page_index query int false "页码"
|
|
|
-// @Param page_size query int false "每页数量"
|
|
|
-// @Param Keywords query string false "只看我的"
|
|
|
-// @Param video_id query int false "视频ID"
|
|
|
+// @Param page_index query int false "页码"
|
|
|
+// @Param page_size query int false "每页数量"
|
|
|
+// @Param keywords query string false "只看我的"
|
|
|
+// @Param video_id query int false "视频ID"
|
|
|
+// @Param chart_permission_id query int false "品种权限ID"
|
|
|
// @Success 200 {object}
|
|
|
// @failure 400 {string} string "获取失败"
|
|
|
// @Router /video/list [get]
|
|
@@ -31,7 +32,7 @@ func VideoList(c *gin.Context) {
|
|
|
if req.PageSize == 0 {
|
|
|
req.PageSize = utils.PageSize20
|
|
|
}
|
|
|
- list, err := community.GetVideoList(req.PageIndex, req.PageSize, req.VideoId, req.Keywords)
|
|
|
+ list, err := community.GetVideoList(req.PageIndex, req.PageSize, req.VideoId, req.ChartPermissionId, req.Keywords)
|
|
|
if err != nil {
|
|
|
response.FailMsg("获取失败", "VideoList ErrMsg:"+err.Error(), c)
|
|
|
return
|