OapiRhinoMosExecClothesScrapRequest.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.rhino.mos.exec.clothes.scrap request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.07.03
  7. */
  8. class OapiRhinoMosExecClothesScrapRequest
  9. {
  10. /**
  11. * 衣服ID列表
  12. **/
  13. private $entityIds;
  14. /**
  15. * 扩展属性
  16. **/
  17. private $extProperties;
  18. /**
  19. * 订单ID
  20. **/
  21. private $orderId;
  22. /**
  23. * 租户ID
  24. **/
  25. private $tenantId;
  26. /**
  27. * 业务参数[这里先预留],这里是用户ID,比如钉钉用户ID
  28. **/
  29. private $userid;
  30. private $apiParas = array();
  31. public function setEntityIds($entityIds)
  32. {
  33. $this->entityIds = $entityIds;
  34. $this->apiParas["entity_ids"] = $entityIds;
  35. }
  36. public function getEntityIds()
  37. {
  38. return $this->entityIds;
  39. }
  40. public function setExtProperties($extProperties)
  41. {
  42. $this->extProperties = $extProperties;
  43. $this->apiParas["ext_properties"] = $extProperties;
  44. }
  45. public function getExtProperties()
  46. {
  47. return $this->extProperties;
  48. }
  49. public function setOrderId($orderId)
  50. {
  51. $this->orderId = $orderId;
  52. $this->apiParas["order_id"] = $orderId;
  53. }
  54. public function getOrderId()
  55. {
  56. return $this->orderId;
  57. }
  58. public function setTenantId($tenantId)
  59. {
  60. $this->tenantId = $tenantId;
  61. $this->apiParas["tenant_id"] = $tenantId;
  62. }
  63. public function getTenantId()
  64. {
  65. return $this->tenantId;
  66. }
  67. public function setUserid($userid)
  68. {
  69. $this->userid = $userid;
  70. $this->apiParas["userid"] = $userid;
  71. }
  72. public function getUserid()
  73. {
  74. return $this->userid;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "dingtalk.oapi.rhino.mos.exec.clothes.scrap";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->entityIds,"entityIds");
  87. RequestCheckUtil::checkMaxListSize($this->entityIds,500,"entityIds");
  88. RequestCheckUtil::checkNotNull($this->tenantId,"tenantId");
  89. }
  90. public function putOtherTextParam($key, $value) {
  91. $this->apiParas[$key] = $value;
  92. $this->$key = $value;
  93. }
  94. }