OapiKacOpenliveWhiteUsersBatchAddRequest.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.kac.openlive.white_users.batch_add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.03.17
  7. */
  8. class OapiKacOpenliveWhiteUsersBatchAddRequest
  9. {
  10. /**
  11. * 直播id
  12. **/
  13. private $liveId;
  14. /**
  15. * 员工id列表
  16. **/
  17. private $userIds;
  18. private $apiParas = array();
  19. public function setLiveId($liveId)
  20. {
  21. $this->liveId = $liveId;
  22. $this->apiParas["live_id"] = $liveId;
  23. }
  24. public function getLiveId()
  25. {
  26. return $this->liveId;
  27. }
  28. public function setUserIds($userIds)
  29. {
  30. $this->userIds = $userIds;
  31. $this->apiParas["user_ids"] = $userIds;
  32. }
  33. public function getUserIds()
  34. {
  35. return $this->userIds;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "dingtalk.oapi.kac.openlive.white_users.batch_add";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. RequestCheckUtil::checkNotNull($this->liveId,"liveId");
  48. RequestCheckUtil::checkNotNull($this->userIds,"userIds");
  49. RequestCheckUtil::checkMaxListSize($this->userIds,999,"userIds");
  50. }
  51. public function putOtherTextParam($key, $value) {
  52. $this->apiParas[$key] = $value;
  53. $this->$key = $value;
  54. }
  55. }