删除topic

This commit is contained in:
tangcongfa_v@didichuxing.com
2021-04-28 11:22:53 +08:00
parent b5901a2819
commit df3283f526
3 changed files with 30 additions and 1 deletions

View File

@@ -350,4 +350,14 @@ public class NormalTopicController {
return topicService.addTopic(dto);
}
@ApiOperation(value = "删除topic",notes = "删除topic")
@RequestMapping(value = {"{clusterId}/topics/{topicName}/delete"},method = RequestMethod.DELETE)
@ResponseBody
public Result deleteTopic(@PathVariable Long clusterId,
@PathVariable String topicName) {
if (ValidateUtils.isNull(clusterId) || ValidateUtils.isNull(topicName)) {
return Result.buildFrom(ResultStatus.PARAM_ILLEGAL);
}
return topicService.deleteTopic(clusterId,topicName);
}
}