package com.seeyon.apps.src_powerfeeinvoice.config;

import com.seeyon.apps.common.config.ICstConfigApi;
import com.seeyon.apps.common.plugin.vo.ConfigVo;
import com.seeyon.apps.src_powerfeeinvoice.constants.PowerFeeInvoiceConstants;
import com.seeyon.ctp.common.AppContext;

import static com.seeyon.apps.src_powerfeeinvoice.constants.PowerFeeInvoiceConstants.getPluginId;


public class PowerFeePluginConfigProvider {
    protected ICstConfigApi cstConfigApi = (ICstConfigApi) AppContext.getBean("cstConfigApi");

    public String getBizConfigByKey(PowerFeeInvoiceConstants key) {
        ConfigVo config = cstConfigApi.getConfig(getPluginId());
        return config.getParamVal(key.name());
    }
}
