|
|
@@ -26,14 +26,14 @@ public class DanmakuController {
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "发送视频弹幕", description = "N")
|
|
|
- @PostMapping("/v3")
|
|
|
+ @PostMapping("/v3/")
|
|
|
public String submitDanmaku(@RequestBody DanmakuSbtDto danmakuSbtDto) {
|
|
|
Result result = danmakuService.submit(danmakuSbtDto);
|
|
|
return WebResult.result(result);
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "获取视频弹幕", description = "N")
|
|
|
- @GetMapping(value = "/v3", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
+ @GetMapping(value = "/v3/", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
public String danmakuList(@RequestParam("id") String videoId, @RequestParam("max") int max) {
|
|
|
List<List<Object>> lists = danmakuService.getByVideoIdAndSize(videoId, 1000);
|
|
|
return WebResult.success(lists);
|