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;
|
}
|
}
|
}
|