lrj
20 小时以前 9f8395fab13ca4b230a0f7d62636e209745c91d4
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
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.rongyichuang.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * 微信小程序配置
 */
@Component
@ConfigurationProperties(prefix = "wechat.miniprogram")
public class WechatConfig {
    
    private String appId;
    private String appSecret;
    private Api api = new Api();
    
    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 Api getApi() {
        return api;
    }
    
    public void setApi(Api api) {
        this.api = api;
    }
    
    public static class Api {
        private String code2session;
        private String getPhoneNumber;
        
        public String getCode2session() {
            return code2session;
        }
        
        public void setCode2session(String code2session) {
            this.code2session = code2session;
        }
        
        public String getGetPhoneNumber() {
            return getPhoneNumber;
        }
        
        public void setGetPhoneNumber(String getPhoneNumber) {
            this.getPhoneNumber = getPhoneNumber;
        }
    }
}