mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	将全局的通用设置--域名审核设置移到“集群设置--网站设置”中
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -79,6 +79,7 @@ const (
 | 
			
		||||
	ServerService_UpdateServerUser_FullMethodName                          = "/pb.ServerService/updateServerUser"
 | 
			
		||||
	ServerService_UpdateServerName_FullMethodName                          = "/pb.ServerService/updateServerName"
 | 
			
		||||
	ServerService_CopyServerConfig_FullMethodName                          = "/pb.ServerService/copyServerConfig"
 | 
			
		||||
	ServerService_FindServerAuditingPrompt_FullMethodName                  = "/pb.ServerService/findServerAuditingPrompt"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// ServerServiceClient is the client API for ServerService service.
 | 
			
		||||
@@ -205,6 +206,8 @@ type ServerServiceClient interface {
 | 
			
		||||
	UpdateServerName(ctx context.Context, in *UpdateServerNameRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
 | 
			
		||||
	// 在网站之间复制配置
 | 
			
		||||
	CopyServerConfig(ctx context.Context, in *CopyServerConfigRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
 | 
			
		||||
	// 获取域名审核时的提示文字
 | 
			
		||||
	FindServerAuditingPrompt(ctx context.Context, in *FindServerAuditingPromptRequest, opts ...grpc.CallOption) (*FindServerAuditingPromptResponse, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type serverServiceClient struct {
 | 
			
		||||
@@ -755,6 +758,15 @@ func (c *serverServiceClient) CopyServerConfig(ctx context.Context, in *CopyServ
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *serverServiceClient) FindServerAuditingPrompt(ctx context.Context, in *FindServerAuditingPromptRequest, opts ...grpc.CallOption) (*FindServerAuditingPromptResponse, error) {
 | 
			
		||||
	out := new(FindServerAuditingPromptResponse)
 | 
			
		||||
	err := c.cc.Invoke(ctx, ServerService_FindServerAuditingPrompt_FullMethodName, in, out, opts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ServerServiceServer is the server API for ServerService service.
 | 
			
		||||
// All implementations should embed UnimplementedServerServiceServer
 | 
			
		||||
// for forward compatibility
 | 
			
		||||
@@ -879,6 +891,8 @@ type ServerServiceServer interface {
 | 
			
		||||
	UpdateServerName(context.Context, *UpdateServerNameRequest) (*RPCSuccess, error)
 | 
			
		||||
	// 在网站之间复制配置
 | 
			
		||||
	CopyServerConfig(context.Context, *CopyServerConfigRequest) (*RPCSuccess, error)
 | 
			
		||||
	// 获取域名审核时的提示文字
 | 
			
		||||
	FindServerAuditingPrompt(context.Context, *FindServerAuditingPromptRequest) (*FindServerAuditingPromptResponse, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UnimplementedServerServiceServer should be embedded to have forward compatible implementations.
 | 
			
		||||
@@ -1065,6 +1079,9 @@ func (UnimplementedServerServiceServer) UpdateServerName(context.Context, *Updat
 | 
			
		||||
func (UnimplementedServerServiceServer) CopyServerConfig(context.Context, *CopyServerConfigRequest) (*RPCSuccess, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method CopyServerConfig not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (UnimplementedServerServiceServer) FindServerAuditingPrompt(context.Context, *FindServerAuditingPromptRequest) (*FindServerAuditingPromptResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method FindServerAuditingPrompt not implemented")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UnsafeServerServiceServer may be embedded to opt out of forward compatibility for this service.
 | 
			
		||||
// Use of this interface is not recommended, as added methods to ServerServiceServer will
 | 
			
		||||
@@ -2157,6 +2174,24 @@ func _ServerService_CopyServerConfig_Handler(srv interface{}, ctx context.Contex
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _ServerService_FindServerAuditingPrompt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(FindServerAuditingPromptRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(ServerServiceServer).FindServerAuditingPrompt(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: ServerService_FindServerAuditingPrompt_FullMethodName,
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(ServerServiceServer).FindServerAuditingPrompt(ctx, req.(*FindServerAuditingPromptRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ServerService_ServiceDesc is the grpc.ServiceDesc for ServerService service.
 | 
			
		||||
// It's only intended for direct use with grpc.RegisterService,
 | 
			
		||||
// and not to be introspected or modified (even as a copy)
 | 
			
		||||
@@ -2404,6 +2439,10 @@ var ServerService_ServiceDesc = grpc.ServiceDesc{
 | 
			
		||||
			MethodName: "copyServerConfig",
 | 
			
		||||
			Handler:    _ServerService_CopyServerConfig_Handler,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "findServerAuditingPrompt",
 | 
			
		||||
			Handler:    _ServerService_FindServerAuditingPrompt_Handler,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	Streams:  []grpc.StreamDesc{},
 | 
			
		||||
	Metadata: "service_server.proto",
 | 
			
		||||
 
 | 
			
		||||
@@ -190,6 +190,9 @@ service ServerService {
 | 
			
		||||
 | 
			
		||||
	// 在网站之间复制配置
 | 
			
		||||
	rpc copyServerConfig(CopyServerConfigRequest) returns (RPCSuccess);
 | 
			
		||||
 | 
			
		||||
	// 获取域名审核时的提示文字
 | 
			
		||||
	rpc findServerAuditingPrompt(FindServerAuditingPromptRequest) returns (FindServerAuditingPromptResponse);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 创建网站
 | 
			
		||||
@@ -715,25 +718,25 @@ message ComposeServerConfigResponse {
 | 
			
		||||
	bytes serverConfigJSON = 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 修改网站UAM设置
 | 
			
		||||
// 修改网站UAM(5秒盾)设置
 | 
			
		||||
message UpdateServerUAMRequest {
 | 
			
		||||
	int64 serverId = 1; // 网站ID
 | 
			
		||||
	bytes uamJSON = 2;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 查找网站UAM设置
 | 
			
		||||
// 查找网站UAM(5秒盾)设置
 | 
			
		||||
message FindEnabledServerUAMRequest {
 | 
			
		||||
	int64 serverId = 1; // 网站ID
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message FindEnabledServerUAMResponse {
 | 
			
		||||
	bytes uamJSON = 1;
 | 
			
		||||
	bytes uamJSON = 1; // UAM设置
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 修改网站所属用户
 | 
			
		||||
message UpdateServerUserRequest {
 | 
			
		||||
	int64 serverId = 1; // 网站ID
 | 
			
		||||
	int64 userId = 2;
 | 
			
		||||
	int64 userId = 2; // 用户ID
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 修改网站名称
 | 
			
		||||
@@ -751,4 +754,13 @@ message CopyServerConfigRequest {
 | 
			
		||||
	repeated int64 targetServerGroupIds = 5; // 目标网站分组ID列表
 | 
			
		||||
	int64 targetClusterId = 6; // 目标集群ID
 | 
			
		||||
	int64 targetUserId = 7; // 目标用户ID
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 获取域名审核时的提示文字
 | 
			
		||||
message FindServerAuditingPromptRequest {
 | 
			
		||||
	int64 serverId = 1; // 网站ID
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message FindServerAuditingPromptResponse {
 | 
			
		||||
	string promptText = 1; // 提示文字
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user