123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.smartwork.hrm.organization.dept.get request
- *
- * @author auto create
- * @since 1.0, 2021.02.19
- */
- class OapiSmartworkHrmOrganizationDeptGetRequest
- {
- /**
- * 部门ID
- **/
- private $deptId;
-
- /**
- * 字段 code 列表
- **/
- private $fieldCodeList;
-
- private $apiParas = array();
-
- public function setDeptId($deptId)
- {
- $this->deptId = $deptId;
- $this->apiParas["dept_id"] = $deptId;
- }
- public function getDeptId()
- {
- return $this->deptId;
- }
- public function setFieldCodeList($fieldCodeList)
- {
- $this->fieldCodeList = $fieldCodeList;
- $this->apiParas["field_code_list"] = $fieldCodeList;
- }
- public function getFieldCodeList()
- {
- return $this->fieldCodeList;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.smartwork.hrm.organization.dept.get";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->deptId,"deptId");
- RequestCheckUtil::checkNotNull($this->fieldCodeList,"fieldCodeList");
- RequestCheckUtil::checkMaxListSize($this->fieldCodeList,999,"fieldCodeList");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|