AlibabaAlihealthEntYzwGetdrugidbyprodcodeRequest.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.ent.yzw.getdrugidbyprodcode request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2025.10.22
  7. */
  8. class AlibabaAlihealthEntYzwGetdrugidbyprodcodeRequest
  9. {
  10. /**
  11. * 包装规格
  12. **/
  13. private $pkgSpec;
  14. /**
  15. * 药品子类编码(prodCode)
  16. **/
  17. private $prodCode;
  18. /**
  19. * 企业id
  20. **/
  21. private $refEntId;
  22. private $apiParas = array();
  23. public function setPkgSpec($pkgSpec)
  24. {
  25. $this->pkgSpec = $pkgSpec;
  26. $this->apiParas["pkg_spec"] = $pkgSpec;
  27. }
  28. public function getPkgSpec()
  29. {
  30. return $this->pkgSpec;
  31. }
  32. public function setProdCode($prodCode)
  33. {
  34. $this->prodCode = $prodCode;
  35. $this->apiParas["prod_code"] = $prodCode;
  36. }
  37. public function getProdCode()
  38. {
  39. return $this->prodCode;
  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.ent.yzw.getdrugidbyprodcode";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->pkgSpec,"pkgSpec");
  61. RequestCheckUtil::checkNotNull($this->prodCode,"prodCode");
  62. RequestCheckUtil::checkNotNull($this->refEntId,"refEntId");
  63. }
  64. public function putOtherTextParam($key, $value) {
  65. $this->apiParas[$key] = $value;
  66. $this->$key = $value;
  67. }
  68. }