package com.cyksj.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @author chan
 * @className WeChatConfig
 * @description 微信配置
 * @date 2020/7/20 2:28 下午
 */
@Configuration
@ConfigurationProperties(prefix = "wechat")
@Getter
@Setter
public class WeChatConfig extends BaseWeChatConfig {


    @PostConstruct
    public void add() {
        WeChatFactory.add(this);
    }
}
