HengbangRequestComponents.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //package com.ydtech.components;
  2. //
  3. //import com.ydtech.modules.ins.model.hb.HengbangPolicyPrintResponse;
  4. //import com.ydtech.modules.ins.model.request.Response;
  5. //import org.springframework.beans.factory.annotation.Autowired;
  6. //import org.springframework.beans.factory.annotation.Value;
  7. //import org.springframework.core.ParameterizedTypeReference;
  8. //import org.springframework.stereotype.Component;
  9. //
  10. //import java.util.Map;
  11. //
  12. //@Component
  13. //public class HengbangRequestComponents {
  14. //
  15. // @Value("${hb.quote.url}")
  16. // private String hbQuoteUrl;
  17. //
  18. // @Value("${hb.audit.url}")
  19. // private String hbAuditUrl;
  20. //
  21. // @Value("${hb.image.url}")
  22. // private String hbImageUrl;
  23. //
  24. // @Value("${hb.getPolicyPrint.url}")
  25. // private String hbPolicyPrintUrl;
  26. //
  27. //
  28. // private RenbaoRequestComponents renbaoRequestComponents;
  29. //
  30. // @Autowired
  31. // public void setRenbaoRequestComponents(RenbaoRequestComponents renbaoRequestComponents) {
  32. // this.renbaoRequestComponents = renbaoRequestComponents;
  33. // }
  34. //
  35. // public <T, B> B quote(T t, Class<B> responseType) {
  36. // return renbaoRequestComponents.post(hbQuoteUrl, "恒邦报价", t, responseType);
  37. // }
  38. //
  39. // public <T, B> B audit(T t, Class<B> responseType) {
  40. // return renbaoRequestComponents.post(hbAuditUrl, "恒邦核保", t, responseType);
  41. // }
  42. //
  43. // public <T, B> B submitImage(T t, Class<B> responseType) {
  44. // return renbaoRequestComponents.post(hbImageUrl, "恒邦上传影响", t, responseType);
  45. // }
  46. //
  47. // public <T, B> B getPolicyPrint(T t, Class<B> responseType) {
  48. // return renbaoRequestComponents.post(hbPolicyPrintUrl, "获取电子保单", t, responseType);
  49. // }
  50. //
  51. //}