123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.edu.student.create request
- *
- * @author auto create
- * @since 1.0, 2021.11.05
- */
- class OapiEduStudentCreateRequest
- {
- /**
- * 业务唯一id
- **/
- private $bizId;
-
- /**
- * 班级id
- **/
- private $classId;
-
- /**
- * 学生手机号
- **/
- private $mobile;
-
- /**
- * 学生名
- **/
- private $name;
-
- /**
- * 钉钉企业管理员
- **/
- private $operator;
-
- /**
- * 学号
- **/
- private $studentNo;
-
- private $apiParas = array();
-
- public function setBizId($bizId)
- {
- $this->bizId = $bizId;
- $this->apiParas["biz_id"] = $bizId;
- }
- public function getBizId()
- {
- return $this->bizId;
- }
- public function setClassId($classId)
- {
- $this->classId = $classId;
- $this->apiParas["class_id"] = $classId;
- }
- public function getClassId()
- {
- return $this->classId;
- }
- public function setMobile($mobile)
- {
- $this->mobile = $mobile;
- $this->apiParas["mobile"] = $mobile;
- }
- public function getMobile()
- {
- return $this->mobile;
- }
- public function setName($name)
- {
- $this->name = $name;
- $this->apiParas["name"] = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setOperator($operator)
- {
- $this->operator = $operator;
- $this->apiParas["operator"] = $operator;
- }
- public function getOperator()
- {
- return $this->operator;
- }
- public function setStudentNo($studentNo)
- {
- $this->studentNo = $studentNo;
- $this->apiParas["student_no"] = $studentNo;
- }
- public function getStudentNo()
- {
- return $this->studentNo;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.edu.student.create";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->classId,"classId");
- RequestCheckUtil::checkNotNull($this->name,"name");
- RequestCheckUtil::checkNotNull($this->operator,"operator");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|