courseCode = $courseCode; $this->apiParas["course_code"] = $courseCode; } public function getCourseCode() { return $this->courseCode; } 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 setParticipantCorpid($participantCorpid) { $this->participantCorpid = $participantCorpid; $this->apiParas["participant_corpid"] = $participantCorpid; } public function getParticipantCorpid() { return $this->participantCorpid; } public function setParticipantId($participantId) { $this->participantId = $participantId; $this->apiParas["participant_id"] = $participantId; } public function getParticipantId() { return $this->participantId; } public function setParticipantType($participantType) { $this->participantType = $participantType; $this->apiParas["participant_type"] = $participantType; } public function getParticipantType() { return $this->participantType; } public function setRole($role) { $this->role = $role; $this->apiParas["role"] = $role; } public function getRole() { return $this->role; } public function getApiMethodName() { return "dingtalk.oapi.edu.course.participant.add"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->courseCode,"courseCode"); RequestCheckUtil::checkNotNull($this->opUserid,"opUserid"); RequestCheckUtil::checkNotNull($this->participantCorpid,"participantCorpid"); RequestCheckUtil::checkNotNull($this->participantId,"participantId"); RequestCheckUtil::checkNotNull($this->participantType,"participantType"); RequestCheckUtil::checkNotNull($this->role,"role"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }