调整配置路径
This commit is contained in:
parent
2f4b2ea77a
commit
b3e21ecec2
@ -1,4 +1,4 @@
|
|||||||
package ink.wgink.properties;
|
package ink.wgink.properties.wechat.miniapp;
|
||||||
|
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
@ -0,0 +1,86 @@
|
|||||||
|
package ink.wgink.properties.wechat.official.account;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When you feel like quitting. Think about why you started
|
||||||
|
* 当你想要放弃的时候,想想当初你为何开始
|
||||||
|
*
|
||||||
|
* @ClassName: WechatOfficialAccountAuthorizeProperties
|
||||||
|
* @Description: 微信公众号授权配置
|
||||||
|
* @Author: WangGeng
|
||||||
|
* @Date: 2020/3/2 3:15 下午
|
||||||
|
* @Version: 1.0
|
||||||
|
**/
|
||||||
|
public class OfficialAccountAuthorizeProperties {
|
||||||
|
private String authorizeUrl;
|
||||||
|
private String accessTokenUrl;
|
||||||
|
private String accessTokenRefreshUrl;
|
||||||
|
private String userinfoUrl;
|
||||||
|
private String responseType;
|
||||||
|
private String scope;
|
||||||
|
private String state;
|
||||||
|
private String grantType;
|
||||||
|
|
||||||
|
public String getAuthorizeUrl() {
|
||||||
|
return authorizeUrl == null ? "" : authorizeUrl.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAuthorizeUrl(String authorizeUrl) {
|
||||||
|
this.authorizeUrl = authorizeUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccessTokenUrl() {
|
||||||
|
return accessTokenUrl == null ? "" : accessTokenUrl.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccessTokenUrl(String accessTokenUrl) {
|
||||||
|
this.accessTokenUrl = accessTokenUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccessTokenRefreshUrl() {
|
||||||
|
return accessTokenRefreshUrl == null ? "" : accessTokenRefreshUrl.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccessTokenRefreshUrl(String accessTokenRefreshUrl) {
|
||||||
|
this.accessTokenRefreshUrl = accessTokenRefreshUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserinfoUrl() {
|
||||||
|
return userinfoUrl == null ? "" : userinfoUrl.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserinfoUrl(String userinfoUrl) {
|
||||||
|
this.userinfoUrl = userinfoUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getResponseType() {
|
||||||
|
return responseType == null ? "" : responseType.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResponseType(String responseType) {
|
||||||
|
this.responseType = responseType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getScope() {
|
||||||
|
return scope == null ? "" : scope.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScope(String scope) {
|
||||||
|
this.scope = scope;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getState() {
|
||||||
|
return state == null ? "" : state.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setState(String state) {
|
||||||
|
this.state = state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGrantType() {
|
||||||
|
return grantType == null ? "" : grantType.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGrantType(String grantType) {
|
||||||
|
this.grantType = grantType;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,83 @@
|
|||||||
|
package ink.wgink.properties.wechat.official.account;
|
||||||
|
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When you feel like quitting. Think about why you started
|
||||||
|
* 当你想要放弃的时候,想想当初你为何开始
|
||||||
|
*
|
||||||
|
* @ClassName: WechatProperties
|
||||||
|
* @Description: 微信配置
|
||||||
|
* @Author: WangGeng
|
||||||
|
* @Date: 2020/3/1 2:22 下午
|
||||||
|
* @Version: 1.0
|
||||||
|
**/
|
||||||
|
@Configuration
|
||||||
|
@ConfigurationProperties(prefix = "open-platform.wechat.official-account")
|
||||||
|
public class OfficialAccountProperties {
|
||||||
|
|
||||||
|
private Boolean apiCrossOrigin;
|
||||||
|
private Boolean activate;
|
||||||
|
private OfficialAccountAuthorizeProperties authorize;
|
||||||
|
private String accessTokenUrl;
|
||||||
|
private String appId;
|
||||||
|
private String appSecret;
|
||||||
|
private String grantType;
|
||||||
|
|
||||||
|
public Boolean getApiCrossOrigin() {
|
||||||
|
return apiCrossOrigin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiCrossOrigin(Boolean apiCrossOrigin) {
|
||||||
|
this.apiCrossOrigin = apiCrossOrigin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getActivate() {
|
||||||
|
return activate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivate(Boolean activate) {
|
||||||
|
this.activate = activate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OfficialAccountAuthorizeProperties getAuthorize() {
|
||||||
|
return authorize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAuthorize(OfficialAccountAuthorizeProperties authorize) {
|
||||||
|
this.authorize = authorize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAccessTokenUrl() {
|
||||||
|
return accessTokenUrl == null ? "" : accessTokenUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccessTokenUrl(String accessTokenUrl) {
|
||||||
|
this.accessTokenUrl = accessTokenUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAppId() {
|
||||||
|
return appId == null ? "" : appId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppId(String appId) {
|
||||||
|
this.appId = appId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAppSecret() {
|
||||||
|
return appSecret == null ? "" : appSecret;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppSecret(String appSecret) {
|
||||||
|
this.appSecret = appSecret;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGrantType() {
|
||||||
|
return grantType == null ? "" : grantType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGrantType(String grantType) {
|
||||||
|
this.grantType = grantType;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user