From a616e914c6a1c817efc9308d5c4a881fb8601b13 Mon Sep 17 00:00:00 2001 From: zhangwei <894646498@qq.com> Date: Mon, 5 Feb 2024 11:56:27 +0800 Subject: [PATCH] Remove the useless code Former-commit-id: eebee72d1c53bfc1080dd9e433012bc680bca676 --- api/desc/core/pcm-core.api | 7 ------- api/internal/types/types.go | 8 -------- 2 files changed, 15 deletions(-) diff --git a/api/desc/core/pcm-core.api b/api/desc/core/pcm-core.api index de86c2b9..a1aebb3b 100644 --- a/api/desc/core/pcm-core.api +++ b/api/desc/core/pcm-core.api @@ -172,13 +172,6 @@ type ( getClusterListResp { clusters []ClusterInfo `json:"clusters"` } - ClusterInfo { - Id int64 `json:"id"` - Name string `json:"name"` - Address string `json:"address"` - Token string `json:"token"` - MetricsUrl string `json:"metricsUrl"` - } ) type ( diff --git a/api/internal/types/types.go b/api/internal/types/types.go index 90b04977..19e46e4e 100644 --- a/api/internal/types/types.go +++ b/api/internal/types/types.go @@ -157,14 +157,6 @@ type GetClusterListResp struct { Clusters []ClusterInfo `json:"clusters"` } -type ClusterInfo struct { - Id int64 `json:"id"` - Name string `json:"name"` - Address string `json:"address"` - Token string `json:"token"` - MetricsUrl string `json:"metricsUrl"` -} - type ListRegionResp struct { Code int32 `json:"code"` Msg string `json:"msg"`