硕顺crm后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

113 lines
1.8 KiB

<?php
/**
* dingtalk API: dingtalk.oapi.crm.objectdata.query request
*
* @author auto create
* @since 1.0, 2021.03.11
*/
class OapiCrmObjectdataQueryRequest
{
/**
* 用户ID
**/
private $currentOperatorUserid;
/**
* 分页游标
**/
private $cursor;
/**
* 表单code
**/
private $name;
/**
* 分页大小
**/
private $pageSize;
/**
* 查询条件
**/
private $queryDsl;
private $apiParas = array();
public function setCurrentOperatorUserid($currentOperatorUserid)
{
$this->currentOperatorUserid = $currentOperatorUserid;
$this->apiParas["current_operator_userid"] = $currentOperatorUserid;
}
public function getCurrentOperatorUserid()
{
return $this->currentOperatorUserid;
}
public function setCursor($cursor)
{
$this->cursor = $cursor;
$this->apiParas["cursor"] = $cursor;
}
public function getCursor()
{
return $this->cursor;
}
public function setName($name)
{
$this->name = $name;
$this->apiParas["name"] = $name;
}
public function getName()
{
return $this->name;
}
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
$this->apiParas["page_size"] = $pageSize;
}
public function getPageSize()
{
return $this->pageSize;
}
public function setQueryDsl($queryDsl)
{
$this->queryDsl = $queryDsl;
$this->apiParas["query_dsl"] = $queryDsl;
}
public function getQueryDsl()
{
return $this->queryDsl;
}
public function getApiMethodName()
{
return "dingtalk.oapi.crm.objectdata.query";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->name,"name");
RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}