12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.role.simplelist request
- *
- * @author auto create
- * @since 1.0, 2021.04.12
- */
- class OapiRoleSimplelistRequest
- {
- /**
- * 支持分页查询,与size参数同时设置时才生效,此参数代表偏移量,偏移量从0开始。
- **/
- private $offset;
-
- /**
- * 角色ID
- **/
- private $roleId;
-
- /**
- * 支持分页查询,与offset参数同时设置时才生效,此参数代表分页大小,最大100。
- **/
- private $size;
-
- private $apiParas = array();
-
- public function setOffset($offset)
- {
- $this->offset = $offset;
- $this->apiParas["offset"] = $offset;
- }
- public function getOffset()
- {
- return $this->offset;
- }
- public function setRoleId($roleId)
- {
- $this->roleId = $roleId;
- $this->apiParas["role_id"] = $roleId;
- }
- public function getRoleId()
- {
- return $this->roleId;
- }
- public function setSize($size)
- {
- $this->size = $size;
- $this->apiParas["size"] = $size;
- }
- public function getSize()
- {
- return $this->size;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.role.simplelist";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkMinValue($this->offset,0,"offset");
- RequestCheckUtil::checkNotNull($this->roleId,"roleId");
- RequestCheckUtil::checkMinValue($this->size,1,"size");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|