|
|
|
@@ -2,7 +2,6 @@ package apps |
|
|
|
|
|
|
|
import ( |
|
|
|
"context" |
|
|
|
"fmt" |
|
|
|
"gitlink.org.cn/jcce-pcm/pcm-participant-kubernetes/kubernetes" |
|
|
|
|
|
|
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc" |
|
|
|
@@ -25,15 +24,16 @@ func NewAppDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AppDeta |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func (l *AppDetailLogic) AppDetail(req *types.AppDetailReq) (resp *types.AppDetailResp, err error) { |
|
|
|
// todo: add your logic here and delete this line |
|
|
|
fmt.Println(req.Name) |
|
|
|
func (l *AppDetailLogic) AppDetail(req *types.AppDetailReq) (resp *kubernetes.AppDetailResp, err error) { |
|
|
|
//调用p端接口 |
|
|
|
appDetail, err := l.svcCtx.K8sRpc[1727670068428410880].GetAppDetail(context.Background(), &kubernetes.AppDetailReq{ |
|
|
|
Namespace: req.NsID, |
|
|
|
Name: req.Name, |
|
|
|
}) |
|
|
|
fmt.Println("应用详情:", appDetail) |
|
|
|
|
|
|
|
return |
|
|
|
if err != nil { |
|
|
|
appDetail.Code = "500" |
|
|
|
appDetail.Msg = err.Error() |
|
|
|
} |
|
|
|
appDetail.Code = "200" |
|
|
|
return appDetail, err |
|
|
|
} |