mirror of
https://github.com/BgaSol/sol-cloud
synced 2026-05-05 23:58:33 +00:00
refactor(video): edit @GetMapping("/play/{id}")
This commit is contained in:
parent
20a70f3360
commit
080ea5dc29
1 changed files with 1 additions and 4 deletions
|
|
@ -9,7 +9,6 @@ import com.bgasol.model.file.video.dto.VideoCreateDto;
|
|||
import com.bgasol.model.file.video.dto.VideoPageDto;
|
||||
import com.bgasol.model.file.video.dto.VideoUpdateDto;
|
||||
import com.bgasol.model.file.video.entity.VideoEntity;
|
||||
import com.bgasol.web.file.file.service.OssService;
|
||||
import com.bgasol.web.file.video.service.VideoService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
|
|
@ -36,8 +35,6 @@ public class VideoController extends BaseController<
|
|||
VideoUpdateDto> {
|
||||
private final VideoService videoService;
|
||||
|
||||
private final OssService ossService;
|
||||
|
||||
@Override
|
||||
public VideoService commonBaseService() {
|
||||
return videoService;
|
||||
|
|
@ -84,7 +81,7 @@ public class VideoController extends BaseController<
|
|||
}
|
||||
|
||||
@SneakyThrows
|
||||
@GetMapping("/{id}")
|
||||
@GetMapping("/play/{id}")
|
||||
@Operation(summary = "在线播放文件", operationId = "playVideo")
|
||||
@SaCheckPermission("video:playVideo")
|
||||
public ResponseEntity<Resource> playVideo(
|
||||
|
|
|
|||
Loading…
Reference in a new issue