OapiRhinoMosLayoutOperationdefsNextRequest.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.rhino.mos.layout.operationdefs.next request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.04.09
  7. */
  8. class OapiRhinoMosLayoutOperationdefsNextRequest
  9. {
  10. /**
  11. * 版本:如果为空,查生效版本;不为空,查指定版本
  12. **/
  13. private $flowVersion;
  14. /**
  15. * 是否需要分配信息
  16. **/
  17. private $needAssignInfo;
  18. /**
  19. * 外部工序ID,和工序唯一ID不能同时为空
  20. **/
  21. private $operationExternalId;
  22. /**
  23. * 工序唯一ID
  24. **/
  25. private $operationUid;
  26. /**
  27. * 订单ID
  28. **/
  29. private $orderId;
  30. /**
  31. * 租户ID
  32. **/
  33. private $tenantId;
  34. /**
  35. * 查询暂存版本
  36. **/
  37. private $tmpSave;
  38. /**
  39. * 用户ID
  40. **/
  41. private $userid;
  42. private $apiParas = array();
  43. public function setFlowVersion($flowVersion)
  44. {
  45. $this->flowVersion = $flowVersion;
  46. $this->apiParas["flow_version"] = $flowVersion;
  47. }
  48. public function getFlowVersion()
  49. {
  50. return $this->flowVersion;
  51. }
  52. public function setNeedAssignInfo($needAssignInfo)
  53. {
  54. $this->needAssignInfo = $needAssignInfo;
  55. $this->apiParas["need_assign_info"] = $needAssignInfo;
  56. }
  57. public function getNeedAssignInfo()
  58. {
  59. return $this->needAssignInfo;
  60. }
  61. public function setOperationExternalId($operationExternalId)
  62. {
  63. $this->operationExternalId = $operationExternalId;
  64. $this->apiParas["operation_external_id"] = $operationExternalId;
  65. }
  66. public function getOperationExternalId()
  67. {
  68. return $this->operationExternalId;
  69. }
  70. public function setOperationUid($operationUid)
  71. {
  72. $this->operationUid = $operationUid;
  73. $this->apiParas["operation_uid"] = $operationUid;
  74. }
  75. public function getOperationUid()
  76. {
  77. return $this->operationUid;
  78. }
  79. public function setOrderId($orderId)
  80. {
  81. $this->orderId = $orderId;
  82. $this->apiParas["order_id"] = $orderId;
  83. }
  84. public function getOrderId()
  85. {
  86. return $this->orderId;
  87. }
  88. public function setTenantId($tenantId)
  89. {
  90. $this->tenantId = $tenantId;
  91. $this->apiParas["tenant_id"] = $tenantId;
  92. }
  93. public function getTenantId()
  94. {
  95. return $this->tenantId;
  96. }
  97. public function setTmpSave($tmpSave)
  98. {
  99. $this->tmpSave = $tmpSave;
  100. $this->apiParas["tmp_save"] = $tmpSave;
  101. }
  102. public function getTmpSave()
  103. {
  104. return $this->tmpSave;
  105. }
  106. public function setUserid($userid)
  107. {
  108. $this->userid = $userid;
  109. $this->apiParas["userid"] = $userid;
  110. }
  111. public function getUserid()
  112. {
  113. return $this->userid;
  114. }
  115. public function getApiMethodName()
  116. {
  117. return "dingtalk.oapi.rhino.mos.layout.operationdefs.next";
  118. }
  119. public function getApiParas()
  120. {
  121. return $this->apiParas;
  122. }
  123. public function check()
  124. {
  125. RequestCheckUtil::checkNotNull($this->needAssignInfo,"needAssignInfo");
  126. RequestCheckUtil::checkNotNull($this->orderId,"orderId");
  127. RequestCheckUtil::checkNotNull($this->tenantId,"tenantId");
  128. }
  129. public function putOtherTextParam($key, $value) {
  130. $this->apiParas[$key] = $value;
  131. $this->$key = $value;
  132. }
  133. }