WxConfigLoader.java 650 字节
Newer Older
1 2
package net.dreamlu.weixin.config;

3 4 5
import com.jfinal.weixin.sdk.api.ApiConfig;
import com.jfinal.wxaapp.WxaConfig;

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import java.util.Collections;
import java.util.List;

/**
 * 微信配置加载器,用于实现数据库读取自定义配置等
 *
 * @author L.cm
 */
public interface WxConfigLoader {
	WxConfigLoader DEFAULT = new WxConfigLoader() {};

	/**
	 * 加载微信配置
	 *
	 * @return 微信配置列表
	 */
22
	default List<ApiConfig> loadWx() {
23 24 25 26 27 28 29 30
		return Collections.emptyList();
	}

	/**
	 * 加载小程序配置
	 *
	 * @return 小程序配置列表
	 */
31
	default List<WxaConfig> loadWxa() {
32 33 34 35
		return Collections.emptyList();
	}

}