123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- package cn.tonyandmoney.tuon.qywx;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import java.util.HashMap;
- import java.util.Map;
- @ConfigurationProperties(prefix = "qywx")
- public class QywxProperties {
- private String corpid;
- private String corpSecret;
- private String host="https://qyapi.weixin.qq.com";
- private String accessTokenPath="/cgi-bin/gettoken?corpid={corpid}&corpsecret={corpsecret}";
- private String userInfoPath="/cgi-bin/user/getuserinfo?access_token={access_token}&code={code}";
- private String userGetPath="/cgi-bin/user/get?access_token={access_token}&userid={userid}";
- private String sendMsgPath="/cgi-bin/message/send?access_token={access_token}";
-
- private String token="xwKMrU6J";
- private String encodingAESKey="uiSDpQAl9yJHtv5iOS9Nr25oKyrIeRcD30DQHECR3zV";
- private String agentId="1000002";
-
- private String welcome="欢迎访问应用!";
- public void setAgentId(String agentId) {
- this.agentId = agentId;
- }
- public String getAgentId() {
- return agentId;
- }
- public void setWelcome(String welcome) {
- this.welcome = welcome;
- }
- public String getWelcome() {
- return welcome;
- }
- public void setSendMsgPath(String sendMsgPath) {
- this.sendMsgPath = sendMsgPath;
- }
- public String getSendMsgPath() {
- return sendMsgPath;
- }
- public void setEncodingAESKey(String encodingAESKey) {
- this.encodingAESKey = encodingAESKey;
- }
- public void setToken(String token) {
- this.token = token;
- }
- public String getEncodingAESKey() {
- return encodingAESKey;
- }
- public String getToken() {
- return token;
- }
- public String getHost() {
- return host;
- }
- public void setHost(String host) {
- this.host = host;
- }
- public String getAccessTokenPath() {
- return accessTokenPath;
- }
- public void setAccessTokenPath(String accessTokenPath) {
- this.accessTokenPath = accessTokenPath;
- }
- public String getUserInfoPath() {
- return userInfoPath;
- }
- public void setUserInfoPath(String userInfoPath) {
- this.userInfoPath = userInfoPath;
- }
- public String getUserGetPath() {
- return userGetPath;
- }
- public void setUserGetPath(String userGetPath) {
- this.userGetPath = userGetPath;
- }
- public String getCorpid() {
- return corpid;
- }
- public void setCorpid(String corpid) {
- this.corpid = corpid;
- }
- public String getCorpSecret() {
- return corpSecret;
- }
- public void setCorpSecret(String corpSecret) {
- this.corpSecret = corpSecret;
- }
- }
|