OapiAttendanceGroupUsersRemoveRequest.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.attendance.group.users.remove request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.04.09
  7. */
  8. class OapiAttendanceGroupUsersRemoveRequest
  9. {
  10. /**
  11. * 考勤组id
  12. **/
  13. private $groupKey;
  14. /**
  15. * 操作人userId
  16. **/
  17. private $opUserid;
  18. /**
  19. * 用户列表
  20. **/
  21. private $userIdList;
  22. private $apiParas = array();
  23. public function setGroupKey($groupKey)
  24. {
  25. $this->groupKey = $groupKey;
  26. $this->apiParas["group_key"] = $groupKey;
  27. }
  28. public function getGroupKey()
  29. {
  30. return $this->groupKey;
  31. }
  32. public function setOpUserid($opUserid)
  33. {
  34. $this->opUserid = $opUserid;
  35. $this->apiParas["op_userid"] = $opUserid;
  36. }
  37. public function getOpUserid()
  38. {
  39. return $this->opUserid;
  40. }
  41. public function setUserIdList($userIdList)
  42. {
  43. $this->userIdList = $userIdList;
  44. $this->apiParas["user_id_list"] = $userIdList;
  45. }
  46. public function getUserIdList()
  47. {
  48. return $this->userIdList;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.attendance.group.users.remove";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->groupKey,"groupKey");
  61. RequestCheckUtil::checkNotNull($this->userIdList,"userIdList");
  62. RequestCheckUtil::checkMaxListSize($this->userIdList,100,"userIdList");
  63. }
  64. public function putOtherTextParam($key, $value) {
  65. $this->apiParas[$key] = $value;
  66. $this->$key = $value;
  67. }
  68. }