mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-04 11:52:07 +08:00
Merge remote-tracking branch 'origin/master' into v2.4.3
This commit is contained in:
@@ -61,10 +61,7 @@ public class NormalTopicController {
|
||||
@ApiOperation(value = "Topic基本信息", notes = "")
|
||||
@RequestMapping(value = "{clusterId}/topics/{topicName}/basic-info", method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
public Result<TopicBasicVO> getTopicBasic(
|
||||
@PathVariable Long clusterId,
|
||||
@PathVariable String topicName,
|
||||
@RequestParam(value = "isPhysicalClusterId", required = false) Boolean isPhysicalClusterId) {
|
||||
public Result<TopicBasicVO> getTopicBasic(@PathVariable Long clusterId, @PathVariable String topicName, @RequestParam(value = "isPhysicalClusterId", required = false) Boolean isPhysicalClusterId) {
|
||||
Long physicalClusterId = logicalClusterMetadataManager.getPhysicalClusterId(clusterId, isPhysicalClusterId);
|
||||
if (ValidateUtils.isNull(physicalClusterId)) {
|
||||
return Result.buildFrom(ResultStatus.CLUSTER_NOT_EXIST);
|
||||
|
||||
@@ -31,6 +31,7 @@ public class TopicModelConverter {
|
||||
vo.setReplicaNum(dto.getReplicaNum());
|
||||
vo.setPrincipals(dto.getPrincipals());
|
||||
vo.setRetentionTime(dto.getRetentionTime());
|
||||
vo.setRetentionBytes(dto.getRetentionBytes());
|
||||
vo.setCreateTime(dto.getCreateTime());
|
||||
vo.setModifyTime(dto.getModifyTime());
|
||||
vo.setScore(dto.getScore());
|
||||
|
||||
Reference in New Issue
Block a user