12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
- class EmployeeListRequest extends SdkRequest {
- const EMPLOYEE_LIST = "/v2/employee/list"; // 员工列表接口地址
- private $selectOffset; // 查询起始位置,默认为0
- private $selectLimit; // 查询列表大小,默认1000
- private $tenantName;
- public function __construct() {
- $count = func_num_args();
- $args=func_get_args();
- if (method_exists($this,$f='__construct'.$count)) {
- call_user_func_array(array($this,$f),$args);
- }
- }
- public function __construct0() {
- }
- /**
- * SealListRequest constructor.
- * @param $selectOffset
- * @param $selectLimit
- */
- public function __construct2($selectOffset, $selectLimit) {
- $this->selectOffset = $selectOffset;
- $this->selectLimit = $selectLimit;
- }
- public function getUrl() {
- return self::EMPLOYEE_LIST;
- }
- public function getHttpParamers() {
- $paramSwitcher = ParamSwitcher::instanceParam();
- $paramSwitcher->addParam('selectOffset', $this->selectOffset);
- $paramSwitcher->addParam('selectLimit', $this->selectLimit);
- $paramSwitcher->addParam('tenantName', $this->tenantName);
- $httpParameters = HttpParameter::httpGetParamer();
- $httpParameters->setParams($paramSwitcher->getParams());
- return $httpParameters;
- }
- /**
- * @return mixed
- */
- public function getSelectOffset()
- {
- return $this->selectOffset;
- }
- /**
- * @param mixed $selectOffset
- */
- public function setSelectOffset($selectOffset)
- {
- $this->selectOffset = $selectOffset;
- }
- /**
- * @return mixed
- */
- public function getSelectLimit()
- {
- return $this->selectLimit;
- }
- /**
- * @param mixed $selectLimit
- */
- public function setSelectLimit($selectLimit)
- {
- $this->selectLimit = $selectLimit;
- }
- /**
- * @return mixed
- */
- public function getTenantName()
- {
- return $this->tenantName;
- }
- /**
- * @param mixed $tenantName
- */
- public function setTenantName($tenantName)
- {
- $this->tenantName = $tenantName;
- }
- }
|