AlibabaAlihealthDrugtraceTopLsydQueryRelationRequest.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.drugtrace.top.lsyd.query.relation request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2025.08.12
  7. */
  8. class AlibabaAlihealthDrugtraceTopLsydQueryRelationRequest
  9. {
  10. /**
  11. * 追溯码
  12. **/
  13. private $code;
  14. /**
  15. * 目标企业唯一标识(为哪个企业查询,一般与入参ref_ent_id一样)
  16. **/
  17. private $desRefEntId;
  18. /**
  19. * 接口调用企业的唯一标识(接口调用者)
  20. **/
  21. private $refEntId;
  22. private $apiParas = array();
  23. public function setCode($code)
  24. {
  25. $this->code = $code;
  26. $this->apiParas["code"] = $code;
  27. }
  28. public function getCode()
  29. {
  30. return $this->code;
  31. }
  32. public function setDesRefEntId($desRefEntId)
  33. {
  34. $this->desRefEntId = $desRefEntId;
  35. $this->apiParas["des_ref_ent_id"] = $desRefEntId;
  36. }
  37. public function getDesRefEntId()
  38. {
  39. return $this->desRefEntId;
  40. }
  41. public function setRefEntId($refEntId)
  42. {
  43. $this->refEntId = $refEntId;
  44. $this->apiParas["ref_ent_id"] = $refEntId;
  45. }
  46. public function getRefEntId()
  47. {
  48. return $this->refEntId;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "alibaba.alihealth.drugtrace.top.lsyd.query.relation";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->code,"code");
  61. RequestCheckUtil::checkNotNull($this->desRefEntId,"desRefEntId");
  62. RequestCheckUtil::checkNotNull($this->refEntId,"refEntId");
  63. }
  64. public function putOtherTextParam($key, $value) {
  65. $this->apiParas[$key] = $value;
  66. $this->$key = $value;
  67. }
  68. }