1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.workspace.task.create request
- *
- * @author auto create
- * @since 1.0, 2021.01.20
- */
- class OapiWorkspaceTaskCreateRequest
- {
- /**
- * 微应用agentId
- **/
- private $microappAgentId;
-
- /**
- * 操作者id
- **/
- private $operatorUserid;
-
- /**
- * 请求入参
- **/
- private $task;
-
- private $apiParas = array();
-
- public function setMicroappAgentId($microappAgentId)
- {
- $this->microappAgentId = $microappAgentId;
- $this->apiParas["microapp_agent_id"] = $microappAgentId;
- }
- public function getMicroappAgentId()
- {
- return $this->microappAgentId;
- }
- public function setOperatorUserid($operatorUserid)
- {
- $this->operatorUserid = $operatorUserid;
- $this->apiParas["operator_userid"] = $operatorUserid;
- }
- public function getOperatorUserid()
- {
- return $this->operatorUserid;
- }
- public function setTask($task)
- {
- $this->task = $task;
- $this->apiParas["task"] = $task;
- }
- public function getTask()
- {
- return $this->task;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.workspace.task.create";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->operatorUserid,"operatorUserid");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|