liujie
11 小时以前 fddf3d913d47f391f84f9e460cb76d427ef02c44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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;
    }
}