1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.role.add_role request
- *
- * @author auto create
- * @since 1.0, 2022.04.12
- */
- class OapiRoleAddRoleRequest
- {
- /**
- * 角色组id
- **/
- private $groupId;
-
- /**
- * 角色名称
- **/
- private $roleName;
-
- private $apiParas = array();
-
- public function setGroupId($groupId)
- {
- $this->groupId = $groupId;
- $this->apiParas["groupId"] = $groupId;
- }
- public function getGroupId()
- {
- return $this->groupId;
- }
- public function setRoleName($roleName)
- {
- $this->roleName = $roleName;
- $this->apiParas["roleName"] = $roleName;
- }
- public function getRoleName()
- {
- return $this->roleName;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.role.add_role";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->groupId,"groupId");
- RequestCheckUtil::checkNotNull($this->roleName,"roleName");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|