WxCpConfig.java 992 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package com.jpsoft.smart.config;
  2. import lombok.Data;
  3. import lombok.Getter;
  4. import lombok.Setter;
  5. import org.springframework.boot.context.properties.ConfigurationProperties;
  6. import org.springframework.stereotype.Component;
  7. import java.util.List;
  8. /**
  9. * @author 墨鱼_mo
  10. * @date 2020-4-1 11:47
  11. */
  12. @Component
  13. @ConfigurationProperties(prefix = "wx.cp")
  14. @Data
  15. public class WxCpConfig {
  16. /**
  17. * 设置微信企业号的corpId
  18. */
  19. private String corpId;
  20. private List<AppConfig> appConfigs;
  21. @Getter
  22. @Setter
  23. public static class AppConfig {
  24. /**
  25. * 设置微信企业应用的AgentId
  26. */
  27. private Integer agentId;
  28. /**
  29. * 设置微信企业应用的Secret
  30. */
  31. private String secret;
  32. /**
  33. * 设置微信企业号的token
  34. */
  35. private String token;
  36. /**
  37. * 设置微信企业号的EncodingAESKey
  38. */
  39. private String aesKey;
  40. }
  41. }