支持更多的分组全局设置功能

This commit is contained in:
GoEdgeLab
2021-10-07 16:47:31 +08:00
parent 5e49ccaf75
commit c8daee237f
9 changed files with 787 additions and 344 deletions

View File

@@ -13,7 +13,7 @@ type ServerDAO struct {
BaseDAO
}
// 查找服务配置
// FindEnabledServerConfig 查找服务配置
func (this *ServerDAO) FindEnabledServerConfig(ctx context.Context, serverId int64) (*serverconfigs.ServerConfig, error) {
resp, err := this.RPC().ServerRPC().FindEnabledServerConfig(ctx, &pb.FindEnabledServerConfigRequest{ServerId: serverId})
if err != nil {
@@ -30,7 +30,7 @@ func (this *ServerDAO) FindEnabledServerConfig(ctx context.Context, serverId int
return config, nil
}
// 查找服务
// FindEnabledServer 查找服务
func (this *ServerDAO) FindEnabledServer(ctx context.Context, serverId int64) (*pb.Server, error) {
resp, err := this.RPC().ServerRPC().FindEnabledServer(ctx, &pb.FindEnabledServerRequest{ServerId: serverId})
if err != nil {