OapiEduStudentCreateRequest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.edu.student.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.11.05
  7. */
  8. class OapiEduStudentCreateRequest
  9. {
  10. /**
  11. * 业务唯一id
  12. **/
  13. private $bizId;
  14. /**
  15. * 班级id
  16. **/
  17. private $classId;
  18. /**
  19. * 学生手机号
  20. **/
  21. private $mobile;
  22. /**
  23. * 学生名
  24. **/
  25. private $name;
  26. /**
  27. * 钉钉企业管理员
  28. **/
  29. private $operator;
  30. /**
  31. * 学号
  32. **/
  33. private $studentNo;
  34. private $apiParas = array();
  35. public function setBizId($bizId)
  36. {
  37. $this->bizId = $bizId;
  38. $this->apiParas["biz_id"] = $bizId;
  39. }
  40. public function getBizId()
  41. {
  42. return $this->bizId;
  43. }
  44. public function setClassId($classId)
  45. {
  46. $this->classId = $classId;
  47. $this->apiParas["class_id"] = $classId;
  48. }
  49. public function getClassId()
  50. {
  51. return $this->classId;
  52. }
  53. public function setMobile($mobile)
  54. {
  55. $this->mobile = $mobile;
  56. $this->apiParas["mobile"] = $mobile;
  57. }
  58. public function getMobile()
  59. {
  60. return $this->mobile;
  61. }
  62. public function setName($name)
  63. {
  64. $this->name = $name;
  65. $this->apiParas["name"] = $name;
  66. }
  67. public function getName()
  68. {
  69. return $this->name;
  70. }
  71. public function setOperator($operator)
  72. {
  73. $this->operator = $operator;
  74. $this->apiParas["operator"] = $operator;
  75. }
  76. public function getOperator()
  77. {
  78. return $this->operator;
  79. }
  80. public function setStudentNo($studentNo)
  81. {
  82. $this->studentNo = $studentNo;
  83. $this->apiParas["student_no"] = $studentNo;
  84. }
  85. public function getStudentNo()
  86. {
  87. return $this->studentNo;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "dingtalk.oapi.edu.student.create";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->classId,"classId");
  100. RequestCheckUtil::checkNotNull($this->name,"name");
  101. RequestCheckUtil::checkNotNull($this->operator,"operator");
  102. }
  103. public function putOtherTextParam($key, $value) {
  104. $this->apiParas[$key] = $value;
  105. $this->$key = $value;
  106. }
  107. }