package com.stylefeng.guns.modular.system.config;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* 项目中需继承此类
|
*
|
* @author lihen
|
*/
|
@Component
|
@ConfigurationProperties(prefix = "wx.conf")
|
public class WxConfig {
|
|
/**
|
* 获取 App ID
|
*
|
* @return App ID
|
*/
|
@JsonProperty("appId")
|
public String appId;
|
|
/**
|
* 获取 Secret
|
*
|
* @return Secret
|
*/
|
@JsonProperty("secret")
|
public String secret;
|
|
public String getAppId() {
|
return appId;
|
}
|
|
public void setAppId(String appId) {
|
this.appId = appId;
|
}
|
|
public String getSecret() {
|
return secret;
|
}
|
|
public void setSecret(String secret) {
|
this.secret = secret;
|
}
|
}
|