OapiUserListidRequest.php 860 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.user.listid request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.09.13
  7. */
  8. class OapiUserListidRequest
  9. {
  10. /**
  11. * 部门id
  12. **/
  13. private $deptId;
  14. private $apiParas = array();
  15. public function setDeptId($deptId)
  16. {
  17. $this->deptId = $deptId;
  18. $this->apiParas["dept_id"] = $deptId;
  19. }
  20. public function getDeptId()
  21. {
  22. return $this->deptId;
  23. }
  24. public function getApiMethodName()
  25. {
  26. return "dingtalk.oapi.user.listid";
  27. }
  28. public function getApiParas()
  29. {
  30. return $this->apiParas;
  31. }
  32. public function check()
  33. {
  34. RequestCheckUtil::checkNotNull($this->deptId,"deptId");
  35. RequestCheckUtil::checkMinValue($this->deptId,1,"deptId");
  36. }
  37. public function putOtherTextParam($key, $value) {
  38. $this->apiParas[$key] = $value;
  39. $this->$key = $value;
  40. }
  41. }