package cc.mrbird.febs.video.controller;
|
|
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.VideoListVo;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiResponse;
|
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;
|
|
/**
|
* @author wzy
|
* @date 2021-12-16
|
**/
|
@Slf4j
|
@RestController
|
@RequiredArgsConstructor
|
@RequestMapping(value = "/api/video")
|
@Api(value = "ApiVideoController", tags = "视频接口类")
|
public class ApiVideoController {
|
|
private final IVideoMasterInfoService videoMasterInfoService;
|
|
@ApiOperation(value = "获取视频列表", notes = "获取视频列表")
|
@ApiResponses({
|
@ApiResponse(code = 200, message = "success", response = VideoListVo.class)
|
})
|
@PostMapping(value = "/list")
|
public FebsResponse videoInPage(@RequestBody VideoListDto videoListDto) {
|
return new FebsResponse().success().data(this.videoMasterInfoService.findVideoList(videoListDto));
|
}
|
}
|