blog-weixin/src/main/java/com/zeekling/solo/wechat/conf/WeChatConfigure.java

68 lines
1.3 KiB
Java
Raw Normal View History

2020-03-19 13:45:56 +00:00
package com.zeekling.solo.wechat.conf;
2020-03-17 16:46:51 +00:00
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* @author zeekling [lingzhaohui@zeekling.cn]
* @version 1.0
* @apiNote
* @since 2020-03-18
*/
@Component
2020-03-21 10:29:30 +00:00
public class WeChatConfigure {
2020-03-17 16:46:51 +00:00
private String appId;
private String secret;
private String token;
private String aesKey;
2020-03-21 04:54:29 +00:00
private String menuFilePath;
2020-03-17 16:46:51 +00:00
public String getAppId() {
return appId;
}
@Value("${wx.mp.appId}")
public void setAppId(String appId) {
this.appId = appId;
}
public String getSecret() {
return secret;
}
@Value("${wx.mp.secret}")
public void setSecret(String secret) {
this.secret = secret;
}
public String getToken() {
return token;
}
@Value("${wx.mp.token}")
public void setToken(String token) {
this.token = token;
}
public String getAesKey() {
return aesKey;
}
@Value("${wx.mp.aesKey}")
public void setAesKey(String aesKey) {
this.aesKey = aesKey;
}
2020-03-21 04:54:29 +00:00
public String getMenuFilePath() {
return menuFilePath;
}
@Value("${menu.file_path}")
public void setMenuFilePath(String menuFilePath) {
this.menuFilePath = menuFilePath;
}
2020-03-17 16:46:51 +00:00
}