package com.nexo.system.dubbo;

import com.nexo.system.api.RemoteConfigService;
import com.nexo.system.service.ISysConfigService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;


/**
 * 参数配置服务
 *
 * @author nexo
 */

@RequiredArgsConstructor
@Service
@DubboService
public class RemoteConfigServiceImpl implements RemoteConfigService {

    private final ISysConfigService sysConfigService;

    @Override
    public String getConfigKey(String configKey) {
        return sysConfigService.selectConfigByKey(configKey);
    }
}
