package com.ruoyi.framework.config;

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

/**
 * 微信配置属性
 * 
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "wechat")
public class WechatProperties 
{
    /** 微信公众号AppId */
    private String appId;
    
    /** 微信公众号AppSecret */
    private String appSecret;
    
    /** 授权回调地址 */
    private String redirectUri;
    
    /** 二维码场景值前缀 */
    private String qrScenePrefix = "LOGIN_";
    
    /** 二维码有效期（秒） */
    private Integer qrExpireTime = 600;
    
    /** 登录状态检查间隔（毫秒） */
    private Long statusCheckInterval = 2000L;

    public String getAppId() 
    {
        return appId;
    }

    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppSecret() 
    {
        return appSecret;
    }

    public void setAppSecret(String appSecret) 
    {
        this.appSecret = appSecret;
    }

    public String getRedirectUri() 
    {
        return redirectUri;
    }

    public void setRedirectUri(String redirectUri) 
    {
        this.redirectUri = redirectUri;
    }

    public String getQrScenePrefix() 
    {
        return qrScenePrefix;
    }

    public void setQrScenePrefix(String qrScenePrefix) 
    {
        this.qrScenePrefix = qrScenePrefix;
    }

    public Integer getQrExpireTime() 
    {
        return qrExpireTime;
    }

    public void setQrExpireTime(Integer qrExpireTime) 
    {
        this.qrExpireTime = qrExpireTime;
    }

    public Long getStatusCheckInterval() 
    {
        return statusCheckInterval;
    }

    public void setStatusCheckInterval(Long statusCheckInterval) 
    {
        this.statusCheckInterval = statusCheckInterval;
    }
}