bizKey = $bizKey; $this->apiParas["biz_key"] = $bizKey; } public function getBizKey() { return $this->bizKey; } 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 setOption($option) { $this->option = $option; $this->apiParas["option"] = $option; } public function getOption() { return $this->option; } 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.create"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->bizKey,"bizKey"); RequestCheckUtil::checkMaxLength($this->bizKey,64,"bizKey"); RequestCheckUtil::checkNotNull($this->introduce,"introduce"); RequestCheckUtil::checkMaxLength($this->introduce,120,"introduce"); RequestCheckUtil::checkNotNull($this->name,"name"); RequestCheckUtil::checkMaxLength($this->name,64,"name"); RequestCheckUtil::checkNotNull($this->opUserid,"opUserid"); RequestCheckUtil::checkNotNull($this->teacherCorpid,"teacherCorpid"); RequestCheckUtil::checkNotNull($this->teacherUserid,"teacherUserid"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }