OapiLiveGroupliveViewrecordRequest.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.live.grouplive.viewrecord request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.12.07
  7. */
  8. class OapiLiveGroupliveViewrecordRequest
  9. {
  10. /**
  11. * 部门id
  12. **/
  13. private $deptId;
  14. /**
  15. * 直播uuid
  16. **/
  17. private $liveUuid;
  18. /**
  19. * 分页拉取
  20. **/
  21. private $pageIndex;
  22. /**
  23. * 一页多少数据,默认100
  24. **/
  25. private $pageSize;
  26. private $apiParas = array();
  27. public function setDeptId($deptId)
  28. {
  29. $this->deptId = $deptId;
  30. $this->apiParas["dept_id"] = $deptId;
  31. }
  32. public function getDeptId()
  33. {
  34. return $this->deptId;
  35. }
  36. public function setLiveUuid($liveUuid)
  37. {
  38. $this->liveUuid = $liveUuid;
  39. $this->apiParas["live_uuid"] = $liveUuid;
  40. }
  41. public function getLiveUuid()
  42. {
  43. return $this->liveUuid;
  44. }
  45. public function setPageIndex($pageIndex)
  46. {
  47. $this->pageIndex = $pageIndex;
  48. $this->apiParas["page_index"] = $pageIndex;
  49. }
  50. public function getPageIndex()
  51. {
  52. return $this->pageIndex;
  53. }
  54. public function setPageSize($pageSize)
  55. {
  56. $this->pageSize = $pageSize;
  57. $this->apiParas["page_size"] = $pageSize;
  58. }
  59. public function getPageSize()
  60. {
  61. return $this->pageSize;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.live.grouplive.viewrecord";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->deptId,"deptId");
  74. RequestCheckUtil::checkNotNull($this->liveUuid,"liveUuid");
  75. RequestCheckUtil::checkNotNull($this->pageIndex,"pageIndex");
  76. RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
  77. }
  78. public function putOtherTextParam($key, $value) {
  79. $this->apiParas[$key] = $value;
  80. $this->$key = $value;
  81. }
  82. }