添加新的删除拉流代理接口

结构优化
648540858 2024-01-08 18:40:46 +08:00
parent 9b1c6c46a8
commit 8d9916f94e
1 changed files with 3 additions and 3 deletions

View File

@ -191,14 +191,14 @@ public class StreamProxyController {
}
}
@DeleteMapping(value = "/del/id")
@DeleteMapping(value = "/delete/id")
@ResponseBody
@Operation(summary = "使用ID移除代理", security = @SecurityRequirement(name = JwtUtils.HEADER))
@Parameter(name = "app", description = "应用名", required = true)
@Parameter(name = "stream", description = "流id", required = true)
public void del(@RequestBody StreamProxy proxy){
logger.info("移除代理: " + proxy.getGbId());
if (ObjectUtils.isEmpty(proxy.getGbId())) {
logger.info("移除代理: " + proxy.getId());
if (proxy.getId() <= 0) {
throw new ControllerException(ErrorCode.ERROR400.getCode(), "缺少ID");
}else {
streamProxyService.delById(proxy.getId());