WxMpPropertiesConfig.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. package com.ruoyi.common.wxMessage;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.stereotype.Component;
  4. /**
  5. * @author xh
  6. * @Date 2022/7/14
  7. */
  8. @Component
  9. @ConfigurationProperties(prefix = "wx")
  10. public class WxMpPropertiesConfig {
  11. /**
  12. * 公众号appId
  13. */
  14. private static String appId;
  15. /**
  16. * 公众号appSecret
  17. */
  18. private static String secret;
  19. /**
  20. * 公众号token
  21. */
  22. private static String token;
  23. /**
  24. * 公众号aesKey
  25. */
  26. private static String aesKey;
  27. /**
  28. * 服务器地址
  29. */
  30. private static String url;
  31. /**
  32. * 前端服务器地址
  33. */
  34. private static String frontUrl;
  35. public static String getAppId() {
  36. return appId;
  37. }
  38. public void setAppId(String appId) {
  39. this.appId = appId;
  40. }
  41. public static String getSecret() {
  42. return secret;
  43. }
  44. public void setSecret(String secret) {
  45. this.secret = secret;
  46. }
  47. public static String getToken() {
  48. return token;
  49. }
  50. public void setToken(String token) {
  51. this.token = token;
  52. }
  53. public static String getAesKey() {
  54. return aesKey;
  55. }
  56. public void setAesKey(String aesKey) {
  57. this.aesKey = aesKey;
  58. }
  59. public static String getUrl() {
  60. return url;
  61. }
  62. public void setUrl(String url) {
  63. this.url = url;
  64. }
  65. public static String getFrontUrl() {
  66. return frontUrl;
  67. }
  68. public void setFrontUrl(String frontUrl) {
  69. this.frontUrl = frontUrl;
  70. }
  71. }