package com.ghy.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 *  七牛云配置
 * @author clunt
 */
@Data
@Component
@ConfigurationProperties(prefix = "wx")
public class WxConfig {

    /**
     * appId
     */
    public String appId;

    /**
     * secret
     */
    public  String secret;

    /**
     * 授权形式
     * get Token grant_type
     */
    private String grantTypeInToken = "client_credential";

    /**
     * 获取用户Token url
     * get Token url
     */
    private String gerTokenUrl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=";

    /**
     * 发送消息api
     */
    private String sendMsgUrl = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=";


    /**
     * 模版相关
     * 测试模版
     */
    private String textTemplateId = "lPqo3fXelyh47pFqv9n5RY9acCd0D8po8-xsgfCj8hY";
}
