package com.seeyon.apps.src_saomaoyi.config;

import com.seeyon.apps.common.config.ICstConfigApi;
import com.seeyon.apps.common.plugin.vo.ConfigVo;
import com.seeyon.apps.src_saomaoyi.constants.SaoMiaoYiConstants;
import com.seeyon.ctp.common.AppContext;

import static com.seeyon.apps.src_saomaoyi.constants.SaoMiaoYiConstants.getPluginId;

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

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