OapiAttendanceAdvancedServiceUnbindRequest.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.attendance.advanced.service.unbind request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.12.20
  7. */
  8. class OapiAttendanceAdvancedServiceUnbindRequest
  9. {
  10. /**
  11. * 实体id
  12. **/
  13. private $entityId;
  14. /**
  15. * 实体类型,目前支持user,group,corp
  16. **/
  17. private $entityType;
  18. /**
  19. * 操作者userid
  20. **/
  21. private $opUserid;
  22. /**
  23. * 服务id
  24. **/
  25. private $serviceId;
  26. private $apiParas = array();
  27. public function setEntityId($entityId)
  28. {
  29. $this->entityId = $entityId;
  30. $this->apiParas["entity_id"] = $entityId;
  31. }
  32. public function getEntityId()
  33. {
  34. return $this->entityId;
  35. }
  36. public function setEntityType($entityType)
  37. {
  38. $this->entityType = $entityType;
  39. $this->apiParas["entity_type"] = $entityType;
  40. }
  41. public function getEntityType()
  42. {
  43. return $this->entityType;
  44. }
  45. public function setOpUserid($opUserid)
  46. {
  47. $this->opUserid = $opUserid;
  48. $this->apiParas["op_userid"] = $opUserid;
  49. }
  50. public function getOpUserid()
  51. {
  52. return $this->opUserid;
  53. }
  54. public function setServiceId($serviceId)
  55. {
  56. $this->serviceId = $serviceId;
  57. $this->apiParas["service_id"] = $serviceId;
  58. }
  59. public function getServiceId()
  60. {
  61. return $this->serviceId;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.attendance.advanced.service.unbind";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->entityId,"entityId");
  74. RequestCheckUtil::checkNotNull($this->entityType,"entityType");
  75. RequestCheckUtil::checkNotNull($this->opUserid,"opUserid");
  76. RequestCheckUtil::checkNotNull($this->serviceId,"serviceId");
  77. }
  78. public function putOtherTextParam($key, $value) {
  79. $this->apiParas[$key] = $value;
  80. $this->$key = $value;
  81. }
  82. }