OapiFugongHealthDataListRequest.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.fugong.health_data.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.10.12
  7. */
  8. class OapiFugongHealthDataListRequest
  9. {
  10. /**
  11. * 时间,必须是YYYY-MM-DD的格式
  12. **/
  13. private $actionDate;
  14. /**
  15. * 分页起始
  16. **/
  17. private $offset;
  18. /**
  19. * 复工审批实例id
  20. **/
  21. private $processInstanceId;
  22. /**
  23. * 分页大小,最大100
  24. **/
  25. private $size;
  26. private $apiParas = array();
  27. public function setActionDate($actionDate)
  28. {
  29. $this->actionDate = $actionDate;
  30. $this->apiParas["action_date"] = $actionDate;
  31. }
  32. public function getActionDate()
  33. {
  34. return $this->actionDate;
  35. }
  36. public function setOffset($offset)
  37. {
  38. $this->offset = $offset;
  39. $this->apiParas["offset"] = $offset;
  40. }
  41. public function getOffset()
  42. {
  43. return $this->offset;
  44. }
  45. public function setProcessInstanceId($processInstanceId)
  46. {
  47. $this->processInstanceId = $processInstanceId;
  48. $this->apiParas["process_instance_id"] = $processInstanceId;
  49. }
  50. public function getProcessInstanceId()
  51. {
  52. return $this->processInstanceId;
  53. }
  54. public function setSize($size)
  55. {
  56. $this->size = $size;
  57. $this->apiParas["size"] = $size;
  58. }
  59. public function getSize()
  60. {
  61. return $this->size;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.fugong.health_data.list";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->actionDate,"actionDate");
  74. RequestCheckUtil::checkNotNull($this->offset,"offset");
  75. RequestCheckUtil::checkNotNull($this->processInstanceId,"processInstanceId");
  76. RequestCheckUtil::checkNotNull($this->size,"size");
  77. }
  78. public function putOtherTextParam($key, $value) {
  79. $this->apiParas[$key] = $value;
  80. $this->$key = $value;
  81. }
  82. }