mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 23:20:26 +08:00
优化API
This commit is contained in:
@@ -355,7 +355,7 @@ func (this *NodeService) FindEnabledNode(ctx context.Context, req *pb.FindEnable
|
||||
}
|
||||
|
||||
// 组合节点配置
|
||||
func (this *NodeService) ComposeNodeConfig(ctx context.Context, req *pb.ComposeNodeConfigRequest) (*pb.ComposeNodeConfigResponse, error) {
|
||||
func (this *NodeService) FindCurrentNodeConfig(ctx context.Context, req *pb.FindCurrentNodeConfigRequest) (*pb.FindCurrentNodeConfigResponse, error) {
|
||||
_ = req
|
||||
|
||||
// 校验节点
|
||||
@@ -373,7 +373,7 @@ func (this *NodeService) ComposeNodeConfig(ctx context.Context, req *pb.ComposeN
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &pb.ComposeNodeConfigResponse{NodeJSON: data}, nil
|
||||
return &pb.FindCurrentNodeConfigResponse{NodeJSON: data}, nil
|
||||
}
|
||||
|
||||
// 更新节点状态
|
||||
|
||||
Reference in New Issue
Block a user