mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	查找当前API节点版本中增加角色
This commit is contained in:
		@@ -240,7 +240,7 @@ func (this *APINodeService) FindEnabledAPINode(ctx context.Context, req *pb.Find
 | 
			
		||||
 | 
			
		||||
// FindCurrentAPINodeVersion 获取当前API节点的版本
 | 
			
		||||
func (this *APINodeService) FindCurrentAPINodeVersion(ctx context.Context, req *pb.FindCurrentAPINodeVersionRequest) (*pb.FindCurrentAPINodeVersionResponse, error) {
 | 
			
		||||
	_, _, _, err := rpcutils.ValidateRequest(ctx)
 | 
			
		||||
	role, _, _, err := rpcutils.ValidateRequest(ctx)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
@@ -249,6 +249,7 @@ func (this *APINodeService) FindCurrentAPINodeVersion(ctx context.Context, req *
 | 
			
		||||
		Version: teaconst.Version,
 | 
			
		||||
		Os:      runtime.GOOS,
 | 
			
		||||
		Arch:    runtime.GOARCH,
 | 
			
		||||
		Role:    role,
 | 
			
		||||
	}, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user