123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.edu.homework.student.report.submit request
- *
- * @author auto create
- * @since 1.0, 2020.04.28
- */
- class OapiEduHomeworkStudentReportSubmitRequest
- {
- /**
- * 扩展属性
- **/
- private $attributes;
-
- /**
- * 业务编码
- **/
- private $bizCode;
-
- /**
- * 部门ID
- **/
- private $classId;
-
- /**
- * 作业ID
- **/
- private $hwId;
-
- /**
- * 作业报告
- **/
- private $hwReport;
-
- /**
- * 作业结果
- **/
- private $hwResult;
-
- /**
- * 学生ID
- **/
- private $studentId;
-
- /**
- * 学生姓名
- **/
- private $studentName;
-
- private $apiParas = array();
-
- public function setAttributes($attributes)
- {
- $this->attributes = $attributes;
- $this->apiParas["attributes"] = $attributes;
- }
- public function getAttributes()
- {
- return $this->attributes;
- }
- public function setBizCode($bizCode)
- {
- $this->bizCode = $bizCode;
- $this->apiParas["biz_code"] = $bizCode;
- }
- public function getBizCode()
- {
- return $this->bizCode;
- }
- public function setClassId($classId)
- {
- $this->classId = $classId;
- $this->apiParas["class_id"] = $classId;
- }
- public function getClassId()
- {
- return $this->classId;
- }
- public function setHwId($hwId)
- {
- $this->hwId = $hwId;
- $this->apiParas["hw_id"] = $hwId;
- }
- public function getHwId()
- {
- return $this->hwId;
- }
- public function setHwReport($hwReport)
- {
- $this->hwReport = $hwReport;
- $this->apiParas["hw_report"] = $hwReport;
- }
- public function getHwReport()
- {
- return $this->hwReport;
- }
- public function setHwResult($hwResult)
- {
- $this->hwResult = $hwResult;
- $this->apiParas["hw_result"] = $hwResult;
- }
- public function getHwResult()
- {
- return $this->hwResult;
- }
- public function setStudentId($studentId)
- {
- $this->studentId = $studentId;
- $this->apiParas["student_id"] = $studentId;
- }
- public function getStudentId()
- {
- return $this->studentId;
- }
- public function setStudentName($studentName)
- {
- $this->studentName = $studentName;
- $this->apiParas["student_name"] = $studentName;
- }
- public function getStudentName()
- {
- return $this->studentName;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.edu.homework.student.report.submit";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->bizCode,"bizCode");
- RequestCheckUtil::checkNotNull($this->classId,"classId");
- RequestCheckUtil::checkNotNull($this->hwId,"hwId");
- RequestCheckUtil::checkNotNull($this->studentId,"studentId");
- RequestCheckUtil::checkNotNull($this->studentName,"studentName");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|