1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.file.upload.chunk request
- *
- * @author auto create
- * @since 1.0, 2018.07.25
- */
- class OapiFileUploadChunkRequest
- {
- /**
- * 微应用的agentId
- **/
- private $agentId;
-
- /**
- * 文件块号,从1开始计数
- **/
- private $chunkSequence;
-
- /**
- * 文件内容
- **/
- private $file;
-
- /**
- * 上传事务id 需要utf-8 urlEncode
- **/
- private $uploadId;
-
- private $apiParas = array();
-
- public function setAgentId($agentId)
- {
- $this->agentId = $agentId;
- $this->apiParas["agent_id"] = $agentId;
- }
- public function getAgentId()
- {
- return $this->agentId;
- }
- public function setChunkSequence($chunkSequence)
- {
- $this->chunkSequence = $chunkSequence;
- $this->apiParas["chunk_sequence"] = $chunkSequence;
- }
- public function getChunkSequence()
- {
- return $this->chunkSequence;
- }
- public function setFile($file)
- {
- $this->file = $file;
- $this->apiParas["file"] = $file;
- }
- public function getFile()
- {
- return $this->file;
- }
- public function setUploadId($uploadId)
- {
- $this->uploadId = $uploadId;
- $this->apiParas["upload_id"] = $uploadId;
- }
- public function getUploadId()
- {
- return $this->uploadId;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.file.upload.chunk";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|