puzhibing
2023-02-24 b4d8cb69ff3a3d35a10a7e5c487ff683b31cc9f1
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
44
45
46
47
48
package com.stylefeng.guns.modular.system.config;
 
 
import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * 项目中需继承此类
 *
 * @author lihen
 */
@Component
@ConfigurationProperties(prefix = "wx.conf")
public class WxConfig {
 
    /**
     * 获取 App ID
     *
     * @return App ID
     */
    @JsonProperty("appId")
    public String appId;
 
    /**
     * 获取 Secret
     *
     * @return Secret
     */
    @JsonProperty("secret")
    public 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;
    }
}