解除限流速率配置

This commit is contained in:
许晓东
2021-11-25 10:55:37 +08:00
parent 1b028fcb4f
commit 73fed3face
9 changed files with 182 additions and 15 deletions

View File

@@ -58,4 +58,9 @@ public class OperationController {
public Object configThrottle(@RequestBody BrokerThrottleDTO dto) {
return operationService.configThrottle(dto.getBrokerList(), dto.getUnit().toKb(dto.getThrottle()));
}
@DeleteMapping("/broker/throttle")
public Object removeThrottle(@RequestBody BrokerThrottleDTO dto) {
return operationService.removeThrottle(dto.getBrokerList());
}
}