mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
v2.8.1_e初始化
1、测试代码,开源用户尽量不要使用; 2、包含Kafka-HA的相关功能,在v2.8.0_e的基础上,补充按照clientId切换的功能; 3、基于v2.8.0_e拉的分支;
This commit is contained in:
@@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -52,6 +53,10 @@ public class RdAppController {
|
||||
@PostMapping(value = "apps/relate-topics")
|
||||
@ResponseBody
|
||||
public Result<List<AppRelateTopicsVO>> appRelateTopics(@Validated @RequestBody AppRelateTopicsDTO dto) {
|
||||
return haAppManager.appRelateTopics(dto.getClusterPhyId(), dto.getFilterTopicNameList());
|
||||
if (dto.getUseKafkaUserAndClientId() != null && dto.getUseKafkaUserAndClientId()) {
|
||||
return haAppManager.appAndClientRelateTopics(dto.getClusterPhyId(), new HashSet<>(dto.getFilterTopicNameList()));
|
||||
}
|
||||
|
||||
return haAppManager.appRelateTopics(dto.getHa(), dto.getClusterPhyId(), dto.getFilterTopicNameList());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user