|
|
@@ -8,6 +8,7 @@ import cn.reghao.tnb.common.db.PageScroll;
|
|
|
import cn.reghao.tnb.content.app.aop.TimeConsumed;
|
|
|
import cn.reghao.tnb.content.api.dto.BannerVideo;
|
|
|
import cn.reghao.tnb.content.api.dto.VideoCard;
|
|
|
+import cn.reghao.tnb.content.app.vod.model.vo.VideoDetail;
|
|
|
import cn.reghao.tnb.content.app.vod.service.RecommendService;
|
|
|
import cn.reghao.tnb.content.app.vod.service.VideoPostQuery;
|
|
|
import io.swagger.annotations.Api;
|
|
|
@@ -46,10 +47,10 @@ public class VideoQueryController {
|
|
|
|
|
|
@TimeConsumed
|
|
|
@ApiOperation(value = "获取分区短视频", notes = "N")
|
|
|
- @GetMapping(value = "/category/short", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
- public String getCategoryShortVideos(@RequestParam("categoryId") int categoryId, @RequestParam("page") int page) {
|
|
|
- PageList<VideoCard> pageList = videoPostQuery.getCategoryShortVideos(categoryId, page);
|
|
|
- return WebResult.success(pageList);
|
|
|
+ @GetMapping(value = "/short", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
+ public String getCategoryShortVideos() {
|
|
|
+ VideoDetail videoDetail = videoPostQuery.getShortVideo();
|
|
|
+ return WebResult.success(videoDetail);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取某个用户发布的视频", notes = "N")
|