OapiEduPeriodMetadataListRequest.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.edu.period.metadata.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.10.14
  7. */
  8. class OapiEduPeriodMetadataListRequest
  9. {
  10. /**
  11. * 地区编码
  12. **/
  13. private $areaCode;
  14. /**
  15. * 游标
  16. **/
  17. private $cursor;
  18. /**
  19. * 排序依赖字段类型
  20. **/
  21. private $dataOrderType;
  22. /**
  23. * 层级
  24. **/
  25. private $level;
  26. /**
  27. * 用户id
  28. **/
  29. private $operatorUserid;
  30. /**
  31. * 父id
  32. **/
  33. private $parentId;
  34. /**
  35. * 每页数据条数
  36. **/
  37. private $size;
  38. /**
  39. * 排序规则(0:升序,1:降序)
  40. **/
  41. private $sortType;
  42. private $apiParas = array();
  43. public function setAreaCode($areaCode)
  44. {
  45. $this->areaCode = $areaCode;
  46. $this->apiParas["area_code"] = $areaCode;
  47. }
  48. public function getAreaCode()
  49. {
  50. return $this->areaCode;
  51. }
  52. public function setCursor($cursor)
  53. {
  54. $this->cursor = $cursor;
  55. $this->apiParas["cursor"] = $cursor;
  56. }
  57. public function getCursor()
  58. {
  59. return $this->cursor;
  60. }
  61. public function setDataOrderType($dataOrderType)
  62. {
  63. $this->dataOrderType = $dataOrderType;
  64. $this->apiParas["data_order_type"] = $dataOrderType;
  65. }
  66. public function getDataOrderType()
  67. {
  68. return $this->dataOrderType;
  69. }
  70. public function setLevel($level)
  71. {
  72. $this->level = $level;
  73. $this->apiParas["level"] = $level;
  74. }
  75. public function getLevel()
  76. {
  77. return $this->level;
  78. }
  79. public function setOperatorUserid($operatorUserid)
  80. {
  81. $this->operatorUserid = $operatorUserid;
  82. $this->apiParas["operator_userid"] = $operatorUserid;
  83. }
  84. public function getOperatorUserid()
  85. {
  86. return $this->operatorUserid;
  87. }
  88. public function setParentId($parentId)
  89. {
  90. $this->parentId = $parentId;
  91. $this->apiParas["parent_id"] = $parentId;
  92. }
  93. public function getParentId()
  94. {
  95. return $this->parentId;
  96. }
  97. public function setSize($size)
  98. {
  99. $this->size = $size;
  100. $this->apiParas["size"] = $size;
  101. }
  102. public function getSize()
  103. {
  104. return $this->size;
  105. }
  106. public function setSortType($sortType)
  107. {
  108. $this->sortType = $sortType;
  109. $this->apiParas["sort_type"] = $sortType;
  110. }
  111. public function getSortType()
  112. {
  113. return $this->sortType;
  114. }
  115. public function getApiMethodName()
  116. {
  117. return "dingtalk.oapi.edu.period.metadata.list";
  118. }
  119. public function getApiParas()
  120. {
  121. return $this->apiParas;
  122. }
  123. public function check()
  124. {
  125. RequestCheckUtil::checkNotNull($this->areaCode,"areaCode");
  126. RequestCheckUtil::checkNotNull($this->cursor,"cursor");
  127. RequestCheckUtil::checkNotNull($this->operatorUserid,"operatorUserid");
  128. RequestCheckUtil::checkNotNull($this->size,"size");
  129. }
  130. public function putOtherTextParam($key, $value) {
  131. $this->apiParas[$key] = $value;
  132. $this->$key = $value;
  133. }
  134. }