package com.ruoyi.auth.config;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* 微信小程序配置
|
*
|
* 对应 nacos `ruoyi-auth-dev.yml` 中 `wechat.miniapp.*` 配置项,
|
* secret 由部署方在配置中心填入,禁止明文提交到 Git。
|
*
|
* @author hugray
|
*/
|
@Component
|
@ConfigurationProperties(prefix = "wechat.miniapp")
|
public class WeChatMiniappProperties
|
{
|
/** 小程序 appid */
|
private String appid;
|
|
/** 小程序 secret(部署方在配置中心填入) */
|
private String secret;
|
|
public String getAppid()
|
{
|
return appid;
|
}
|
|
public void setAppid(String appid)
|
{
|
this.appid = appid;
|
}
|
|
public String getSecret()
|
{
|
return secret;
|
}
|
|
public void setSecret(String secret)
|
{
|
this.secret = secret;
|
}
|
}
|