OapiRhinoMosExecPerformContextAddRequest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.rhino.mos.exec.perform.context.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.07.22
  7. */
  8. class OapiRhinoMosExecPerformContextAddRequest
  9. {
  10. /**
  11. * 上下文
  12. **/
  13. private $context;
  14. /**
  15. * 工序执行记录ID列表
  16. **/
  17. private $operationRecordIds;
  18. /**
  19. * 订单ID
  20. **/
  21. private $orderId;
  22. /**
  23. * 租户ID
  24. **/
  25. private $tenantId;
  26. /**
  27. * 业务参数,先预留ID
  28. **/
  29. private $userid;
  30. private $apiParas = array();
  31. public function setContext($context)
  32. {
  33. $this->context = $context;
  34. $this->apiParas["context"] = $context;
  35. }
  36. public function getContext()
  37. {
  38. return $this->context;
  39. }
  40. public function setOperationRecordIds($operationRecordIds)
  41. {
  42. $this->operationRecordIds = $operationRecordIds;
  43. $this->apiParas["operation_record_ids"] = $operationRecordIds;
  44. }
  45. public function getOperationRecordIds()
  46. {
  47. return $this->operationRecordIds;
  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.perform.context.add";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->context,"context");
  87. RequestCheckUtil::checkNotNull($this->operationRecordIds,"operationRecordIds");
  88. RequestCheckUtil::checkMaxListSize($this->operationRecordIds,100,"operationRecordIds");
  89. RequestCheckUtil::checkNotNull($this->tenantId,"tenantId");
  90. }
  91. public function putOtherTextParam($key, $value) {
  92. $this->apiParas[$key] = $value;
  93. $this->$key = $value;
  94. }
  95. }