123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.im.chat.controlgroup.create request
- *
- * @author auto create
- * @since 1.0, 2020.05.29
- */
- class OapiImChatControlgroupCreateRequest
- {
- /**
- * 群的管理权限设置,0-所有人可管理(默认),1-仅群主和群管理员可管理
- **/
- private $authorityType;
-
- /**
- * goc模拟群:goc, 网商银行群:eCommerce
- **/
- private $groupType;
-
- /**
- * 建群去重的业务id
- **/
- private $groupUniqId;
-
- /**
- * 群成员在钉钉组织内的userid列表
- **/
- private $memberUserids;
-
- /**
- * 群主在钉钉组织内的userid
- **/
- private $ownerUserid;
-
- /**
- * 群标题
- **/
- private $title;
-
- private $apiParas = array();
-
- public function setAuthorityType($authorityType)
- {
- $this->authorityType = $authorityType;
- $this->apiParas["authority_type"] = $authorityType;
- }
- public function getAuthorityType()
- {
- return $this->authorityType;
- }
- public function setGroupType($groupType)
- {
- $this->groupType = $groupType;
- $this->apiParas["group_type"] = $groupType;
- }
- public function getGroupType()
- {
- return $this->groupType;
- }
- public function setGroupUniqId($groupUniqId)
- {
- $this->groupUniqId = $groupUniqId;
- $this->apiParas["group_uniq_id"] = $groupUniqId;
- }
- public function getGroupUniqId()
- {
- return $this->groupUniqId;
- }
- public function setMemberUserids($memberUserids)
- {
- $this->memberUserids = $memberUserids;
- $this->apiParas["member_userids"] = $memberUserids;
- }
- public function getMemberUserids()
- {
- return $this->memberUserids;
- }
- public function setOwnerUserid($ownerUserid)
- {
- $this->ownerUserid = $ownerUserid;
- $this->apiParas["owner_userid"] = $ownerUserid;
- }
- public function getOwnerUserid()
- {
- return $this->ownerUserid;
- }
- public function setTitle($title)
- {
- $this->title = $title;
- $this->apiParas["title"] = $title;
- }
- public function getTitle()
- {
- return $this->title;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.im.chat.controlgroup.create";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->memberUserids,"memberUserids");
- RequestCheckUtil::checkMaxListSize($this->memberUserids,20,"memberUserids");
- RequestCheckUtil::checkNotNull($this->ownerUserid,"ownerUserid");
- RequestCheckUtil::checkNotNull($this->title,"title");
- RequestCheckUtil::checkMaxLength($this->title,256,"title");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|