|
@@ -11,10 +11,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-/**
|
|
|
- * @author ruoyi
|
|
|
- * @date 2022-05-31
|
|
|
- */
|
|
|
@RestController
|
|
|
@RequestMapping("/live/videoText")
|
|
|
public class VideoTextController extends BaseController {
|
|
@@ -23,11 +19,11 @@ public class VideoTextController extends BaseController {
|
|
|
private VideoTextService videoTextService;
|
|
|
|
|
|
|
|
|
- @GetMapping(value = "addVideo")
|
|
|
+ @GetMapping(value = "getVideoText")
|
|
|
@ApiOperation(value = "添加视频")
|
|
|
- public ResultResponse addVideo(@ApiParam("视频URL") @RequestParam(value = "url", required = true) String url, String md5) {
|
|
|
+ public ResultResponse getVideoText(@ApiParam("视频URL") @RequestParam(value = "url", required = true) String url) {
|
|
|
try {
|
|
|
- return videoTextService.addVideo(url, md5);
|
|
|
+ return videoTextService.getVideoText(url);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return ResultResponse.error("添加异常");
|