AlibabaAlihealthSynergyYzwDrugreportByfileSaveSelfRequest.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.synergy.yzw.drugreport.byfile.save.self request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2025.10.22
  7. */
  8. class AlibabaAlihealthSynergyYzwDrugreportByfileSaveSelfRequest
  9. {
  10. /**
  11. * 授权企业的相关印章信息
  12. **/
  13. private $authSealInfo;
  14. /**
  15. * 药检报告批次号
  16. **/
  17. private $batchNo;
  18. /**
  19. * 药品ID
  20. **/
  21. private $drugEntBaseInfoId;
  22. /**
  23. * 文件类型支持pdf,jpg,jpeg,png
  24. **/
  25. private $fileType;
  26. /**
  27. * 药品生产日期
  28. **/
  29. private $produceDate;
  30. /**
  31. * 上传报告企业的refEntId
  32. **/
  33. private $refEntId;
  34. /**
  35. * 报告文件二进制字节数组
  36. **/
  37. private $reportData;
  38. /**
  39. * 报告日期
  40. **/
  41. private $reportDate;
  42. /**
  43. * 报告编号
  44. **/
  45. private $reportNo;
  46. /**
  47. * 调用企业的章信息
  48. **/
  49. private $selfSealInfo;
  50. /**
  51. * 三方用户标识
  52. **/
  53. private $userId;
  54. private $apiParas = array();
  55. public function setAuthSealInfo($authSealInfo)
  56. {
  57. $this->authSealInfo = $authSealInfo;
  58. $this->apiParas["auth_seal_info"] = $authSealInfo;
  59. }
  60. public function getAuthSealInfo()
  61. {
  62. return $this->authSealInfo;
  63. }
  64. public function setBatchNo($batchNo)
  65. {
  66. $this->batchNo = $batchNo;
  67. $this->apiParas["batch_no"] = $batchNo;
  68. }
  69. public function getBatchNo()
  70. {
  71. return $this->batchNo;
  72. }
  73. public function setDrugEntBaseInfoId($drugEntBaseInfoId)
  74. {
  75. $this->drugEntBaseInfoId = $drugEntBaseInfoId;
  76. $this->apiParas["drug_ent_base_info_id"] = $drugEntBaseInfoId;
  77. }
  78. public function getDrugEntBaseInfoId()
  79. {
  80. return $this->drugEntBaseInfoId;
  81. }
  82. public function setFileType($fileType)
  83. {
  84. $this->fileType = $fileType;
  85. $this->apiParas["file_type"] = $fileType;
  86. }
  87. public function getFileType()
  88. {
  89. return $this->fileType;
  90. }
  91. public function setProduceDate($produceDate)
  92. {
  93. $this->produceDate = $produceDate;
  94. $this->apiParas["produce_date"] = $produceDate;
  95. }
  96. public function getProduceDate()
  97. {
  98. return $this->produceDate;
  99. }
  100. public function setRefEntId($refEntId)
  101. {
  102. $this->refEntId = $refEntId;
  103. $this->apiParas["ref_ent_id"] = $refEntId;
  104. }
  105. public function getRefEntId()
  106. {
  107. return $this->refEntId;
  108. }
  109. public function setReportData($reportData)
  110. {
  111. $this->reportData = $reportData;
  112. $this->apiParas["report_data"] = $reportData;
  113. }
  114. public function getReportData()
  115. {
  116. return $this->reportData;
  117. }
  118. public function setReportDate($reportDate)
  119. {
  120. $this->reportDate = $reportDate;
  121. $this->apiParas["report_date"] = $reportDate;
  122. }
  123. public function getReportDate()
  124. {
  125. return $this->reportDate;
  126. }
  127. public function setReportNo($reportNo)
  128. {
  129. $this->reportNo = $reportNo;
  130. $this->apiParas["report_no"] = $reportNo;
  131. }
  132. public function getReportNo()
  133. {
  134. return $this->reportNo;
  135. }
  136. public function setSelfSealInfo($selfSealInfo)
  137. {
  138. $this->selfSealInfo = $selfSealInfo;
  139. $this->apiParas["self_seal_info"] = $selfSealInfo;
  140. }
  141. public function getSelfSealInfo()
  142. {
  143. return $this->selfSealInfo;
  144. }
  145. public function setUserId($userId)
  146. {
  147. $this->userId = $userId;
  148. $this->apiParas["user_id"] = $userId;
  149. }
  150. public function getUserId()
  151. {
  152. return $this->userId;
  153. }
  154. public function getApiMethodName()
  155. {
  156. return "alibaba.alihealth.synergy.yzw.drugreport.byfile.save.self";
  157. }
  158. public function getApiParas()
  159. {
  160. return $this->apiParas;
  161. }
  162. public function check()
  163. {
  164. RequestCheckUtil::checkNotNull($this->batchNo,"batchNo");
  165. RequestCheckUtil::checkNotNull($this->drugEntBaseInfoId,"drugEntBaseInfoId");
  166. RequestCheckUtil::checkNotNull($this->fileType,"fileType");
  167. RequestCheckUtil::checkNotNull($this->refEntId,"refEntId");
  168. RequestCheckUtil::checkNotNull($this->reportData,"reportData");
  169. RequestCheckUtil::checkNotNull($this->userId,"userId");
  170. }
  171. public function putOtherTextParam($key, $value) {
  172. $this->apiParas[$key] = $value;
  173. $this->$key = $value;
  174. }
  175. }