| | |
| | | import cc.mrbird.febs.common.entity.QueryRequest; |
| | | import cc.mrbird.febs.system.entity.Dept; |
| | | import cc.mrbird.febs.video.entity.VideoCategoryEntity; |
| | | import cc.mrbird.febs.video.entity.VideoMasterInfoEntity; |
| | | import cc.mrbird.febs.video.entity.VideoMasterSourceEntity; |
| | | import cc.mrbird.febs.video.service.IVideoCategoryService; |
| | | import cc.mrbird.febs.video.service.IVideoMasterInfoService; |
| | | import cc.mrbird.febs.video.service.IVideoMasterSourceService; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringPool; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | |
| | | private final IVideoCategoryService videoCategoryService; |
| | | private final IVideoMasterSourceService videoMasterSourceService; |
| | | private final IVideoMasterInfoService videoMasterInfoService; |
| | | |
| | | @GetMapping("/allCategory") |
| | | public List<DeptTree<VideoCategoryEntity>> allCategory() { |
| | |
| | | |
| | | @PostMapping("/source/add") |
| | | @RequiresPermissions("source:add") |
| | | @ControllerEndpoint(operation = "新增资源", exceptionMessage = "新增资源失败") |
| | | public FebsResponse addVideoSource(VideoMasterSourceEntity source) { |
| | | this.videoMasterSourceService.save(source); |
| | | return new FebsResponse().success(); |
| | |
| | | |
| | | @PostMapping("/source/update") |
| | | @RequiresPermissions("source:update") |
| | | @ControllerEndpoint(operation = "修改资源", exceptionMessage = "修改资源失败") |
| | | public FebsResponse updateVideoSource(VideoMasterSourceEntity source) { |
| | | this.videoMasterSourceService.modifySourceById(source); |
| | | return new FebsResponse().success(); |
| | |
| | | |
| | | @GetMapping("/source/delete/{ids}") |
| | | @RequiresPermissions("source:delete") |
| | | @ControllerEndpoint(operation = "删除资源", exceptionMessage = "删除资源失败") |
| | | public FebsResponse delSource(@PathVariable String ids) { |
| | | this.videoMasterSourceService.delSource(ids); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @GetMapping("/video/list") |
| | | @RequiresPermissions("source:view") |
| | | @ControllerEndpoint(operation = "视频列表", exceptionMessage = "获取视频列表失败") |
| | | public FebsResponse videoList(VideoMasterInfoEntity info, QueryRequest request) { |
| | | return null; |
| | | } |
| | | |
| | | } |