1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.smartwork.hrm.employee.v2.list request
- *
- * @author auto create
- * @since 1.0, 2022.05.17
- */
- class OapiSmartworkHrmEmployeeV2ListRequest
- {
- /**
- * 微应用在企业的agentId
- **/
- private $agentid;
-
- /**
- * 需要获取的花名册字段信息(不传值时,企业调用获取全部字段,ISV调用获取所有有权限字段。查询字段越少,RT越低,建议按需查询)
- **/
- private $fieldFilterList;
-
- /**
- * 员工id列表
- **/
- private $useridList;
-
- private $apiParas = array();
-
- public function setAgentid($agentid)
- {
- $this->agentid = $agentid;
- $this->apiParas["agentid"] = $agentid;
- }
- public function getAgentid()
- {
- return $this->agentid;
- }
- public function setFieldFilterList($fieldFilterList)
- {
- $this->fieldFilterList = $fieldFilterList;
- $this->apiParas["field_filter_list"] = $fieldFilterList;
- }
- public function getFieldFilterList()
- {
- return $this->fieldFilterList;
- }
- public function setUseridList($useridList)
- {
- $this->useridList = $useridList;
- $this->apiParas["userid_list"] = $useridList;
- }
- public function getUseridList()
- {
- return $this->useridList;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.smartwork.hrm.employee.v2.list";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->agentid,"agentid");
- RequestCheckUtil::checkMaxListSize($this->fieldFilterList,100,"fieldFilterList");
- RequestCheckUtil::checkNotNull($this->useridList,"useridList");
- RequestCheckUtil::checkMaxListSize($this->useridList,100,"useridList");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|