OapiSmartworkHrmMasterCheckRequest.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.smartwork.hrm.master.check request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.10.27
  7. */
  8. class OapiSmartworkHrmMasterCheckRequest
  9. {
  10. /**
  11. * 业务UK唯一确定一条流水
  12. **/
  13. private $bizUk;
  14. /**
  15. * 子代码,可以不传
  16. **/
  17. private $entityCode;
  18. /**
  19. * 业务领域
  20. **/
  21. private $scopeCode;
  22. /**
  23. * 业务方id(由系统统一分配)
  24. **/
  25. private $tenantId;
  26. private $apiParas = array();
  27. public function setBizUk($bizUk)
  28. {
  29. $this->bizUk = $bizUk;
  30. $this->apiParas["biz_uk"] = $bizUk;
  31. }
  32. public function getBizUk()
  33. {
  34. return $this->bizUk;
  35. }
  36. public function setEntityCode($entityCode)
  37. {
  38. $this->entityCode = $entityCode;
  39. $this->apiParas["entity_code"] = $entityCode;
  40. }
  41. public function getEntityCode()
  42. {
  43. return $this->entityCode;
  44. }
  45. public function setScopeCode($scopeCode)
  46. {
  47. $this->scopeCode = $scopeCode;
  48. $this->apiParas["scope_code"] = $scopeCode;
  49. }
  50. public function getScopeCode()
  51. {
  52. return $this->scopeCode;
  53. }
  54. public function setTenantId($tenantId)
  55. {
  56. $this->tenantId = $tenantId;
  57. $this->apiParas["tenant_id"] = $tenantId;
  58. }
  59. public function getTenantId()
  60. {
  61. return $this->tenantId;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.smartwork.hrm.master.check";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->bizUk,"bizUk");
  74. RequestCheckUtil::checkMaxListSize($this->bizUk,20,"bizUk");
  75. RequestCheckUtil::checkNotNull($this->scopeCode,"scopeCode");
  76. RequestCheckUtil::checkNotNull($this->tenantId,"tenantId");
  77. }
  78. public function putOtherTextParam($key, $value) {
  79. $this->apiParas[$key] = $value;
  80. $this->$key = $value;
  81. }
  82. }