123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.wiki.group.list request
- *
- * @author auto create
- * @since 1.0, 2020.10.16
- */
- class OapiWikiGroupListRequest
- {
- /**
- * 个人授权信息
- **/
- private $authCode;
-
- /**
- * 分页游标(默认0)
- **/
- private $cursor;
-
- /**
- * 1:组织内公开可见 2:非组织内公开可见
- **/
- private $groupType;
-
- /**
- * 1:管理员 2:编辑权限 3:只读权限
- **/
- private $roleType;
-
- /**
- * 分页大小(默认20)
- **/
- private $size;
-
- private $apiParas = array();
-
- public function setAuthCode($authCode)
- {
- $this->authCode = $authCode;
- $this->apiParas["auth_code"] = $authCode;
- }
- public function getAuthCode()
- {
- return $this->authCode;
- }
- public function setCursor($cursor)
- {
- $this->cursor = $cursor;
- $this->apiParas["cursor"] = $cursor;
- }
- public function getCursor()
- {
- return $this->cursor;
- }
- public function setGroupType($groupType)
- {
- $this->groupType = $groupType;
- $this->apiParas["group_type"] = $groupType;
- }
- public function getGroupType()
- {
- return $this->groupType;
- }
- public function setRoleType($roleType)
- {
- $this->roleType = $roleType;
- $this->apiParas["role_type"] = $roleType;
- }
- public function getRoleType()
- {
- return $this->roleType;
- }
- public function setSize($size)
- {
- $this->size = $size;
- $this->apiParas["size"] = $size;
- }
- public function getSize()
- {
- return $this->size;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.wiki.group.list";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->authCode,"authCode");
- RequestCheckUtil::checkNotNull($this->groupType,"groupType");
- RequestCheckUtil::checkNotNull($this->roleType,"roleType");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|