硕顺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.
 
 
 
 
 
 

112 lines
1.9 KiB

<?php
/**
* dingtalk API: dingtalk.oapi.crm.objectdata.contact.query request
*
* @author auto create
* @since 1.0, 2020.09.27
*/
class OapiCrmObjectdataContactQueryRequest
{
/**
* 用户ID
**/
private $currentOperatorUserid;
/**
* 分页游标
**/
private $cursor;
/**
* 分页大小
**/
private $pageSize;
/**
* 服务商组织 id,自建应用可以传入
**/
private $providerCorpid;
/**
* 查询条件
**/
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 setPageSize($pageSize)
{
$this->pageSize = $pageSize;
$this->apiParas["page_size"] = $pageSize;
}
public function getPageSize()
{
return $this->pageSize;
}
public function setProviderCorpid($providerCorpid)
{
$this->providerCorpid = $providerCorpid;
$this->apiParas["provider_corpid"] = $providerCorpid;
}
public function getProviderCorpid()
{
return $this->providerCorpid;
}
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.contact.query";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}