package com.cool.store.config.weixin;

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

/**
 * @Author suzhuhong
 * @Date 2025/10/10 14:29
 * @Version 1.0
 * 微信服务号配置
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "wechat.mp")
public class WechatMpProperties {

    /**
     * 公众号appId
     */
    private String appId;

    /**
     * 公众号appSecret
     */
    private String appSecret;

    /**
     * 获取access_token的URL
     */
    private String accessTokenUrl = "https://api.weixin.qq.com/cgi-bin/token";

    /**
     * 发送模板消息的URL
     */
    private String sendTemplateMessageUrl = "https://api.weixin.qq.com/cgi-bin/message/template/send";
}
