1
0

Cus.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.emato.ccnet.wx.config;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.stereotype.Component;
  4. import java.io.Serializable;
  5. import java.util.HashMap;
  6. import java.util.Map;
  7. @Component
  8. @ConfigurationProperties(prefix="cus") //接收application.yml中的pays下面的属性
  9. public class Cus implements Serializable {
  10. private static final long serialVersionUID = -2913008001943191086L;
  11. private Map<String, String> order = new HashMap<>(); //接收order里面的属性值
  12. private Map<String, String> waybill = new HashMap<>(); //接收waybill里面的属性值
  13. private Map<String, Object> play = new HashMap<>(); //接收play里面的属性值
  14. private Map<String, String> message = new HashMap<>();//接收message里面的属性值
  15. public Map<String, String> getOrder() {
  16. return order;
  17. }
  18. public void setOrder(Map<String, String> order) {
  19. this.order = order;
  20. }
  21. public Map<String, String> getWaybill() {
  22. return waybill;
  23. }
  24. public void setWaybill(Map<String, String> waybill) {
  25. this.waybill = waybill;
  26. }
  27. public Map<String, Object> getPlay() {
  28. return play;
  29. }
  30. public void setPlay(Map<String, Object> play) {
  31. this.play = play;
  32. }
  33. public Map<String, String> getMessage() {
  34. return message;
  35. }
  36. public void setMessage(Map<String, String> message) {
  37. this.message = message;
  38. }
  39. }