OapiPbpInstanceGroupMemberListRequest.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.pbp.instance.group.member.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.01.20
  7. */
  8. class OapiPbpInstanceGroupMemberListRequest
  9. {
  10. /**
  11. * 业务唯一标识
  12. **/
  13. private $bizId;
  14. /**
  15. * 游标,用于分页查询
  16. **/
  17. private $cursor;
  18. /**
  19. * 打卡组id,由创建打卡组接口返回
  20. **/
  21. private $punchGroupId;
  22. /**
  23. * 分页请求数量
  24. **/
  25. private $size;
  26. private $apiParas = array();
  27. public function setBizId($bizId)
  28. {
  29. $this->bizId = $bizId;
  30. $this->apiParas["biz_id"] = $bizId;
  31. }
  32. public function getBizId()
  33. {
  34. return $this->bizId;
  35. }
  36. public function setCursor($cursor)
  37. {
  38. $this->cursor = $cursor;
  39. $this->apiParas["cursor"] = $cursor;
  40. }
  41. public function getCursor()
  42. {
  43. return $this->cursor;
  44. }
  45. public function setPunchGroupId($punchGroupId)
  46. {
  47. $this->punchGroupId = $punchGroupId;
  48. $this->apiParas["punch_group_id"] = $punchGroupId;
  49. }
  50. public function getPunchGroupId()
  51. {
  52. return $this->punchGroupId;
  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.pbp.instance.group.member.list";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->cursor,"cursor");
  74. RequestCheckUtil::checkNotNull($this->punchGroupId,"punchGroupId");
  75. RequestCheckUtil::checkNotNull($this->size,"size");
  76. }
  77. public function putOtherTextParam($key, $value) {
  78. $this->apiParas[$key] = $value;
  79. $this->$key = $value;
  80. }
  81. }