mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
处理冲突
This commit is contained in:
@@ -6,9 +6,7 @@ import com.xiaojukeji.kafka.manager.common.entity.Result;
|
||||
import com.xiaojukeji.kafka.manager.common.entity.ResultStatus;
|
||||
import com.xiaojukeji.kafka.manager.common.entity.ao.topic.TopicConnection;
|
||||
import com.xiaojukeji.kafka.manager.common.entity.ao.topic.TopicPartitionDTO;
|
||||
import com.xiaojukeji.kafka.manager.common.entity.dto.normal.TopicAddDTO;
|
||||
import com.xiaojukeji.kafka.manager.common.entity.dto.normal.TopicDataSampleDTO;
|
||||
import com.xiaojukeji.kafka.manager.common.entity.dto.normal.TopicExpandDTO;
|
||||
import com.xiaojukeji.kafka.manager.common.entity.metrics.BaseMetrics;
|
||||
import com.xiaojukeji.kafka.manager.common.entity.vo.common.RealTimeMetricsVO;
|
||||
import com.xiaojukeji.kafka.manager.common.entity.vo.normal.TopicBusinessInfoVO;
|
||||
@@ -341,24 +339,4 @@ public class NormalTopicController {
|
||||
);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "创建topic",notes = "创建topic")
|
||||
@RequestMapping(value = {"/topics/add"},method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public Result addTopic(@RequestBody TopicAddDTO dto) {
|
||||
if (ValidateUtils.isNull(dto)) {
|
||||
return Result.buildFrom(ResultStatus.PARAM_ILLEGAL);
|
||||
}
|
||||
return topicService.addTopic(dto);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "扩分区",notes = "扩分区")
|
||||
@RequestMapping(value = "{/topics/expand}",method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public Result expandTopic(@RequestBody TopicExpandDTO dto) {
|
||||
if (ValidateUtils.isNull(dto)) {
|
||||
return Result.buildFrom(ResultStatus.PARAM_ILLEGAL);
|
||||
}
|
||||
return topicService.expandTopic(dto);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user