OapiRhinoMosLayoutOperationdefsSectionfirstRequest.php 2.6 KB

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