ZmApiConfigurationProperties.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.ydtech.config.properties;
  2. import com.ydtech.modules.order.entity.api.zm.BaseRequestHead;
  3. import lombok.Data;
  4. import org.springframework.boot.context.properties.ConfigurationProperties;
  5. import org.springframework.stereotype.Component;
  6. /**
  7. * @author wenks
  8. * @version 0.0.2
  9. * @description TODO
  10. * @date 2023/4/20 18:01
  11. */
  12. @Data
  13. @Component
  14. @ConfigurationProperties(prefix = "zm.api")
  15. public class ZmApiConfigurationProperties {
  16. private String source;
  17. private String token;
  18. private String url;
  19. private String imageUrl;
  20. private String smsUrl;
  21. // 支付完成页面跳转地址
  22. private String pageUrl;
  23. //
  24. private String callbackDomain;
  25. // 承保回调地址
  26. private String callbackUrl;
  27. // 审核回调地址
  28. private String passMsgUrl;
  29. /**
  30. * 中煤请求 head 的参数
  31. *
  32. * @param transCode
  33. * @return
  34. */
  35. public BaseRequestHead getHead(String transCode) {
  36. return new BaseRequestHead(transCode, "Req", token, source);
  37. }
  38. }