12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.cspace.file.presignedurl.get request
- *
- * @author auto create
- * @since 1.0, 2020.11.18
- */
- class OapiCspaceFilePresignedurlGetRequest
- {
- /**
- * 钉盘文件ID
- **/
- private $dentryid;
-
- /**
- * 签名URL的有效期,不传的话为默认值15分钟
- **/
- private $expireSeconds;
-
- /**
- * 是否为内部调用,统一传false
- **/
- private $innerInvoke;
-
- /**
- * 钉盘空间ID
- **/
- private $spaceid;
-
- private $apiParas = array();
-
- public function setDentryid($dentryid)
- {
- $this->dentryid = $dentryid;
- $this->apiParas["dentryid"] = $dentryid;
- }
- public function getDentryid()
- {
- return $this->dentryid;
- }
- public function setExpireSeconds($expireSeconds)
- {
- $this->expireSeconds = $expireSeconds;
- $this->apiParas["expire_seconds"] = $expireSeconds;
- }
- public function getExpireSeconds()
- {
- return $this->expireSeconds;
- }
- public function setInnerInvoke($innerInvoke)
- {
- $this->innerInvoke = $innerInvoke;
- $this->apiParas["inner_invoke"] = $innerInvoke;
- }
- public function getInnerInvoke()
- {
- return $this->innerInvoke;
- }
- public function setSpaceid($spaceid)
- {
- $this->spaceid = $spaceid;
- $this->apiParas["spaceid"] = $spaceid;
- }
- public function getSpaceid()
- {
- return $this->spaceid;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.cspace.file.presignedurl.get";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->dentryid,"dentryid");
- RequestCheckUtil::checkNotNull($this->spaceid,"spaceid");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|