OapiRhinoMosLayoutOperationdefSaveflowRequest.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.rhino.mos.layout.operationdef.saveflow request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.04.09
  7. */
  8. class OapiRhinoMosLayoutOperationdefSaveflowRequest
  9. {
  10. /**
  11. * 是否生效
  12. **/
  13. private $active;
  14. /**
  15. * 工序版本(指定版本时版本如果已经存在则幂等)
  16. **/
  17. private $flowVersion;
  18. /**
  19. * 工序定义列表
  20. **/
  21. private $operationDefs;
  22. /**
  23. * 订单ID
  24. **/
  25. private $orderId;
  26. /**
  27. * 来源系统
  28. **/
  29. private $source;
  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 setActive($active)
  44. {
  45. $this->active = $active;
  46. $this->apiParas["active"] = $active;
  47. }
  48. public function getActive()
  49. {
  50. return $this->active;
  51. }
  52. public function setFlowVersion($flowVersion)
  53. {
  54. $this->flowVersion = $flowVersion;
  55. $this->apiParas["flow_version"] = $flowVersion;
  56. }
  57. public function getFlowVersion()
  58. {
  59. return $this->flowVersion;
  60. }
  61. public function setOperationDefs($operationDefs)
  62. {
  63. $this->operationDefs = $operationDefs;
  64. $this->apiParas["operation_defs"] = $operationDefs;
  65. }
  66. public function getOperationDefs()
  67. {
  68. return $this->operationDefs;
  69. }
  70. public function setOrderId($orderId)
  71. {
  72. $this->orderId = $orderId;
  73. $this->apiParas["order_id"] = $orderId;
  74. }
  75. public function getOrderId()
  76. {
  77. return $this->orderId;
  78. }
  79. public function setSource($source)
  80. {
  81. $this->source = $source;
  82. $this->apiParas["source"] = $source;
  83. }
  84. public function getSource()
  85. {
  86. return $this->source;
  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.operationdef.saveflow";
  118. }
  119. public function getApiParas()
  120. {
  121. return $this->apiParas;
  122. }
  123. public function check()
  124. {
  125. RequestCheckUtil::checkNotNull($this->active,"active");
  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. }