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.
48 lines
757 B
48 lines
757 B
<?php
|
|
/**
|
|
* dingtalk API: dingtalk.oapi.v2.user.getuserinfo request
|
|
*
|
|
* @author auto create
|
|
* @since 1.0, 2022.02.15
|
|
*/
|
|
class OapiV2UserGetuserinfoRequest
|
|
{
|
|
/**
|
|
* 免登授权码
|
|
**/
|
|
private $code;
|
|
|
|
private $apiParas = array();
|
|
|
|
public function setCode($code)
|
|
{
|
|
$this->code = $code;
|
|
$this->apiParas["code"] = $code;
|
|
}
|
|
|
|
public function getCode()
|
|
{
|
|
return $this->code;
|
|
}
|
|
|
|
public function getApiMethodName()
|
|
{
|
|
return "dingtalk.oapi.v2.user.getuserinfo";
|
|
}
|
|
|
|
public function getApiParas()
|
|
{
|
|
return $this->apiParas;
|
|
}
|
|
|
|
public function check()
|
|
{
|
|
|
|
RequestCheckUtil::checkNotNull($this->code,"code");
|
|
}
|
|
|
|
public function putOtherTextParam($key, $value) {
|
|
$this->apiParas[$key] = $value;
|
|
$this->$key = $value;
|
|
}
|
|
}
|
|
|