123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.edu.course.update request
- *
- * @author auto create
- * @since 1.0, 2020.08.10
- */
- class OapiEduCourseUpdateRequest
- {
- /**
- * 课程唯一编码
- **/
- private $courseCode;
-
- /**
- * 课程的结束时间,Unix毫秒时间戳
- **/
- private $endTime;
-
- /**
- * 课程介绍
- **/
- private $introduce;
-
- /**
- * 课程名称
- **/
- private $name;
-
- /**
- * 当前用户ID
- **/
- private $opUserid;
-
- /**
- * 课程的开始时间,Unix毫秒时间戳
- **/
- private $startTime;
-
- /**
- * 老师的组织CorpId
- **/
- private $teacherCorpid;
-
- /**
- * 老师的用户ID
- **/
- private $teacherUserid;
-
- private $apiParas = array();
-
- public function setCourseCode($courseCode)
- {
- $this->courseCode = $courseCode;
- $this->apiParas["course_code"] = $courseCode;
- }
- public function getCourseCode()
- {
- return $this->courseCode;
- }
- public function setEndTime($endTime)
- {
- $this->endTime = $endTime;
- $this->apiParas["end_time"] = $endTime;
- }
- public function getEndTime()
- {
- return $this->endTime;
- }
- public function setIntroduce($introduce)
- {
- $this->introduce = $introduce;
- $this->apiParas["introduce"] = $introduce;
- }
- public function getIntroduce()
- {
- return $this->introduce;
- }
- public function setName($name)
- {
- $this->name = $name;
- $this->apiParas["name"] = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setOpUserid($opUserid)
- {
- $this->opUserid = $opUserid;
- $this->apiParas["op_userid"] = $opUserid;
- }
- public function getOpUserid()
- {
- return $this->opUserid;
- }
- public function setStartTime($startTime)
- {
- $this->startTime = $startTime;
- $this->apiParas["start_time"] = $startTime;
- }
- public function getStartTime()
- {
- return $this->startTime;
- }
- public function setTeacherCorpid($teacherCorpid)
- {
- $this->teacherCorpid = $teacherCorpid;
- $this->apiParas["teacher_corpid"] = $teacherCorpid;
- }
- public function getTeacherCorpid()
- {
- return $this->teacherCorpid;
- }
- 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.course.update";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->courseCode,"courseCode");
- RequestCheckUtil::checkMaxLength($this->introduce,120,"introduce");
- RequestCheckUtil::checkMaxLength($this->name,64,"name");
- RequestCheckUtil::checkNotNull($this->opUserid,"opUserid");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|