AlibabaAlihealthDrugLsydSaveentRequest.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.drug.lsyd.saveent request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.11.25
  7. */
  8. class AlibabaAlihealthDrugLsydSaveentRequest
  9. {
  10. /**
  11. * 新增企业信息
  12. **/
  13. private $addEntReq;
  14. /**
  15. * 图片数据流。图片大小务必控制在2M以内
  16. **/
  17. private $licPictureByte;
  18. /**
  19. * 添加企业唯一标识
  20. **/
  21. private $refEntId;
  22. private $apiParas = array();
  23. public function setAddEntReq($addEntReq)
  24. {
  25. $this->addEntReq = $addEntReq;
  26. $this->apiParas["add_ent_req"] = $addEntReq;
  27. }
  28. public function getAddEntReq()
  29. {
  30. return $this->addEntReq;
  31. }
  32. public function setLicPictureByte($licPictureByte)
  33. {
  34. $this->licPictureByte = $licPictureByte;
  35. $this->apiParas["lic_picture_byte"] = $licPictureByte;
  36. }
  37. public function getLicPictureByte()
  38. {
  39. return $this->licPictureByte;
  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.drug.lsyd.saveent";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->licPictureByte,"licPictureByte");
  61. RequestCheckUtil::checkNotNull($this->refEntId,"refEntId");
  62. }
  63. public function putOtherTextParam($key, $value) {
  64. $this->apiParas[$key] = $value;
  65. $this->$key = $value;
  66. }
  67. }