AlipayZdatafrontCommonQueryRequest.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.zdatafront.common.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-11-14 12:16:36
  7. */
  8. class AlipayZdatafrontCommonQueryRequest
  9. {
  10. /**
  11. * 如果cacheInterval<=0,就直接从外部获取数据;
  12. 如果cacheInterval>0,就先判断cache中的数据是否过期,如果没有过期就返回cache中的数据,如果过期再从外部获取数据并刷新cache,然后返回数据。
  13. 单位:秒
  14. **/
  15. private $cacheInterval;
  16. /**
  17. * 通用查询的入参
  18. **/
  19. private $queryConditions;
  20. /**
  21. * 服务名称请与相关开发负责人联系
  22. **/
  23. private $serviceName;
  24. /**
  25. * 访问该服务的业务
  26. **/
  27. private $visitBiz;
  28. /**
  29. * 访问该服务的业务线
  30. **/
  31. private $visitBizLine;
  32. /**
  33. * 访问该服务的部门名称
  34. **/
  35. private $visitDomain;
  36. private $apiParas = array();
  37. private $terminalType;
  38. private $terminalInfo;
  39. private $prodCode;
  40. private $apiVersion="1.0";
  41. private $notifyUrl;
  42. private $returnUrl;
  43. private $needEncrypt=false;
  44. public function setCacheInterval($cacheInterval)
  45. {
  46. $this->cacheInterval = $cacheInterval;
  47. $this->apiParas["cache_interval"] = $cacheInterval;
  48. }
  49. public function getCacheInterval()
  50. {
  51. return $this->cacheInterval;
  52. }
  53. public function setQueryConditions($queryConditions)
  54. {
  55. $this->queryConditions = $queryConditions;
  56. $this->apiParas["query_conditions"] = $queryConditions;
  57. }
  58. public function getQueryConditions()
  59. {
  60. return $this->queryConditions;
  61. }
  62. public function setServiceName($serviceName)
  63. {
  64. $this->serviceName = $serviceName;
  65. $this->apiParas["service_name"] = $serviceName;
  66. }
  67. public function getServiceName()
  68. {
  69. return $this->serviceName;
  70. }
  71. public function setVisitBiz($visitBiz)
  72. {
  73. $this->visitBiz = $visitBiz;
  74. $this->apiParas["visit_biz"] = $visitBiz;
  75. }
  76. public function getVisitBiz()
  77. {
  78. return $this->visitBiz;
  79. }
  80. public function setVisitBizLine($visitBizLine)
  81. {
  82. $this->visitBizLine = $visitBizLine;
  83. $this->apiParas["visit_biz_line"] = $visitBizLine;
  84. }
  85. public function getVisitBizLine()
  86. {
  87. return $this->visitBizLine;
  88. }
  89. public function setVisitDomain($visitDomain)
  90. {
  91. $this->visitDomain = $visitDomain;
  92. $this->apiParas["visit_domain"] = $visitDomain;
  93. }
  94. public function getVisitDomain()
  95. {
  96. return $this->visitDomain;
  97. }
  98. public function getApiMethodName()
  99. {
  100. return "alipay.zdatafront.common.query";
  101. }
  102. public function setNotifyUrl($notifyUrl)
  103. {
  104. $this->notifyUrl=$notifyUrl;
  105. }
  106. public function getNotifyUrl()
  107. {
  108. return $this->notifyUrl;
  109. }
  110. public function setReturnUrl($returnUrl)
  111. {
  112. $this->returnUrl=$returnUrl;
  113. }
  114. public function getReturnUrl()
  115. {
  116. return $this->returnUrl;
  117. }
  118. public function getApiParas()
  119. {
  120. return $this->apiParas;
  121. }
  122. public function getTerminalType()
  123. {
  124. return $this->terminalType;
  125. }
  126. public function setTerminalType($terminalType)
  127. {
  128. $this->terminalType = $terminalType;
  129. }
  130. public function getTerminalInfo()
  131. {
  132. return $this->terminalInfo;
  133. }
  134. public function setTerminalInfo($terminalInfo)
  135. {
  136. $this->terminalInfo = $terminalInfo;
  137. }
  138. public function getProdCode()
  139. {
  140. return $this->prodCode;
  141. }
  142. public function setProdCode($prodCode)
  143. {
  144. $this->prodCode = $prodCode;
  145. }
  146. public function setApiVersion($apiVersion)
  147. {
  148. $this->apiVersion=$apiVersion;
  149. }
  150. public function getApiVersion()
  151. {
  152. return $this->apiVersion;
  153. }
  154. public function setNeedEncrypt($needEncrypt)
  155. {
  156. $this->needEncrypt=$needEncrypt;
  157. }
  158. public function getNeedEncrypt()
  159. {
  160. return $this->needEncrypt;
  161. }
  162. }