mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-03 02:52:08 +08:00
删除topic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user