jhprjv2/ruoyi-common/src/main/java/com/ruoyi/common/config/WechatAccountConfig.java

92 lines
1.8 KiB
Java
Raw Normal View History

2024-03-31 23:31:38 +08:00
package com.ruoyi.common.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* Created by tao.
* Date: 2023/3/21 15:02
* :
*/
@Component
@ConfigurationProperties(prefix = "wechat")
public class WechatAccountConfig {
/**
* id
*/
2024-04-03 01:46:39 +08:00
private static String mpAppId;
2024-03-31 23:31:38 +08:00
/**
*
*/
2024-04-03 01:46:39 +08:00
private static String mpAppSecret;
2024-03-31 23:31:38 +08:00
/**
2024-04-03 01:46:39 +08:00
* Token
2024-03-31 23:31:38 +08:00
*/
2024-04-03 01:46:39 +08:00
private static String myToken;
/**
* AccessToken
*/
private static String myAccessToken;
2024-04-05 19:25:29 +08:00
/**
* AppId
*/
private static String wxAppId;
/**
* Secret
*/
private static String wxAppSecret;
2024-04-03 01:46:39 +08:00
public static String getMpAppId() {
return mpAppId;
}
public void setMpAppId(String mpAppId) {
WechatAccountConfig.mpAppId = mpAppId;
}
public static String getMpAppSecret() {
return mpAppSecret;
}
public void setMpAppSecret(String mpAppSecret) {
WechatAccountConfig.mpAppSecret = mpAppSecret;
}
public static String getMyToken() {
return myToken;
}
public void setMyToken(String myToken) {
WechatAccountConfig.myToken = myToken;
}
public static String getMyAccessToken() {
return myAccessToken;
}
public void setMyAccessToken(String myAccessToken) {
WechatAccountConfig.myAccessToken = myAccessToken;
}
2024-04-05 19:25:29 +08:00
public static String getWxAppId() {
return wxAppId;
}
public void setWxAppId(String wxAppId) {
WechatAccountConfig.wxAppId = wxAppId;
}
public static String getWxAppSecret() {
return wxAppSecret;
}
public void setWxAppSecret(String wxAppSecret) {
WechatAccountConfig.wxAppSecret = wxAppSecret;
}
2024-03-31 23:31:38 +08:00
}