| | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.video.dto.VideoListDto; |
| | | import cc.mrbird.febs.video.service.IVideoMasterInfoService; |
| | | import cc.mrbird.febs.video.vo.VideoInfoVo; |
| | | import cc.mrbird.febs.video.vo.VideoListVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import io.swagger.annotations.ApiResponses; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @author wzy |
| | |
| | | public FebsResponse videoInPage(@RequestBody VideoListDto videoListDto) { |
| | | return new FebsResponse().success().data(this.videoMasterInfoService.findVideoList(videoListDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据ID获取视频信息", notes = "根据ID获取视频信息") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = VideoInfoVo.class) |
| | | }) |
| | | @GetMapping(value = "/info/{videoId}") |
| | | public FebsResponse videoInfo(@PathVariable("videoId") Long videoId, @RequestParam(value = "itemId", required = false) Long itemId) { |
| | | return new FebsResponse().success().data(this.videoMasterInfoService.findVideoInfo(videoId, itemId)); |
| | | } |
| | | } |