OapiRhinoMosExecClothesFinishRequest.php 1.7 KB

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