123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.edu.homework.update request
- *
- * @author auto create
- * @since 1.0, 2020.04.29
- */
- class OapiEduHomeworkUpdateRequest
- {
- /**
- * 业务编码
- **/
- private $bizCode;
-
- /**
- * 作业ID
- **/
- private $hwId;
-
- /**
- * 幂等标识
- **/
- private $identifier;
-
- /**
- * 状态
- **/
- private $status;
-
- /**
- * 老师UserId
- **/
- private $teacherUserid;
-
- private $apiParas = array();
-
- public function setBizCode($bizCode)
- {
- $this->bizCode = $bizCode;
- $this->apiParas["biz_code"] = $bizCode;
- }
- public function getBizCode()
- {
- return $this->bizCode;
- }
- public function setHwId($hwId)
- {
- $this->hwId = $hwId;
- $this->apiParas["hw_id"] = $hwId;
- }
- public function getHwId()
- {
- return $this->hwId;
- }
- public function setIdentifier($identifier)
- {
- $this->identifier = $identifier;
- $this->apiParas["identifier"] = $identifier;
- }
- public function getIdentifier()
- {
- return $this->identifier;
- }
- public function setStatus($status)
- {
- $this->status = $status;
- $this->apiParas["status"] = $status;
- }
- public function getStatus()
- {
- return $this->status;
- }
- public function setTeacherUserid($teacherUserid)
- {
- $this->teacherUserid = $teacherUserid;
- $this->apiParas["teacher_userid"] = $teacherUserid;
- }
- public function getTeacherUserid()
- {
- return $this->teacherUserid;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.edu.homework.update";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->bizCode,"bizCode");
- RequestCheckUtil::checkNotNull($this->hwId,"hwId");
- RequestCheckUtil::checkNotNull($this->identifier,"identifier");
- RequestCheckUtil::checkNotNull($this->status,"status");
- RequestCheckUtil::checkNotNull($this->teacherUserid,"teacherUserid");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|