package cn.superdesk.uniorder.dubbo.consumer._common;

import cn.superdesk.uniorder.dto._constant.ResourceConstant;
import cn.superdesk.uniorder.dto._variable.AccountingScoreCustomerVariable;
import cn.superdesk.uniorder.dubbo.facade._commom.DubboProviderEnvConstantCustomerService;
import com.alibaba.dubbo.config.annotation.Reference;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2021/3/4 下午4:23
 * @UpdateUser: linjinyu
 * @UpdateDate: 2021/3/4 下午4:23
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@Slf4j
@Component
public class ProviderEnvConstantDubboCustomerService {

    @Reference(version = "1.0.0", timeout = 30000, retries = -1)
    private DubboProviderEnvConstantCustomerService dubboProviderEnvConstantCustomerService;

    /**
     * @return
     */
    public ResourceConstant getResourceConstant() {
        return dubboProviderEnvConstantCustomerService.getResourceConstant();
    }

    /**
     * @return
     */
    public AccountingScoreCustomerVariable getAccountingScoreCustomerVariable() {
        return dubboProviderEnvConstantCustomerService.getAccountingScoreCustomerVariable();
    }
}
