12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.processinstance.file.download request
- *
- * @author auto create
- * @since 1.0, 2020.01.03
- */
- class OapiProcessinstanceFileDownloadRequest
- {
- /**
- * 企业应用标识
- **/
- private $agentId;
-
- /**
- * 文件id
- **/
- private $fileId;
-
- /**
- * 流程实例id
- **/
- private $processInstanceId;
-
- private $apiParas = array();
-
- public function setAgentId($agentId)
- {
- $this->agentId = $agentId;
- $this->apiParas["agent_id"] = $agentId;
- }
- public function getAgentId()
- {
- return $this->agentId;
- }
- public function setFileId($fileId)
- {
- $this->fileId = $fileId;
- $this->apiParas["file_id"] = $fileId;
- }
- public function getFileId()
- {
- return $this->fileId;
- }
- public function setProcessInstanceId($processInstanceId)
- {
- $this->processInstanceId = $processInstanceId;
- $this->apiParas["process_instance_id"] = $processInstanceId;
- }
- public function getProcessInstanceId()
- {
- return $this->processInstanceId;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.processinstance.file.download";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->agentId,"agentId");
- RequestCheckUtil::checkNotNull($this->fileId,"fileId");
- RequestCheckUtil::checkNotNull($this->processInstanceId,"processInstanceId");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|