OapiEduHomeworkStudentCommentCreateRequest.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.edu.homework.student.comment.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.04.28
  7. */
  8. class OapiEduHomeworkStudentCommentCreateRequest
  9. {
  10. /**
  11. * 属性参数
  12. **/
  13. private $attributes;
  14. /**
  15. * 业务编码
  16. **/
  17. private $bizCode;
  18. /**
  19. * 班级ID
  20. **/
  21. private $classId;
  22. /**
  23. * 评论
  24. **/
  25. private $comment;
  26. /**
  27. * 作业ID
  28. **/
  29. private $hwId;
  30. /**
  31. * 老师评论视频
  32. **/
  33. private $media;
  34. /**
  35. * 老师评论图片
  36. **/
  37. private $photo;
  38. /**
  39. * 学生ID
  40. **/
  41. private $studentId;
  42. /**
  43. * 学生姓名
  44. **/
  45. private $studentName;
  46. /**
  47. * 老师UserId
  48. **/
  49. private $teacherUserid;
  50. /**
  51. * 老师评论语音
  52. **/
  53. private $video;
  54. private $apiParas = array();
  55. public function setAttributes($attributes)
  56. {
  57. $this->attributes = $attributes;
  58. $this->apiParas["attributes"] = $attributes;
  59. }
  60. public function getAttributes()
  61. {
  62. return $this->attributes;
  63. }
  64. public function setBizCode($bizCode)
  65. {
  66. $this->bizCode = $bizCode;
  67. $this->apiParas["biz_code"] = $bizCode;
  68. }
  69. public function getBizCode()
  70. {
  71. return $this->bizCode;
  72. }
  73. public function setClassId($classId)
  74. {
  75. $this->classId = $classId;
  76. $this->apiParas["class_id"] = $classId;
  77. }
  78. public function getClassId()
  79. {
  80. return $this->classId;
  81. }
  82. public function setComment($comment)
  83. {
  84. $this->comment = $comment;
  85. $this->apiParas["comment"] = $comment;
  86. }
  87. public function getComment()
  88. {
  89. return $this->comment;
  90. }
  91. public function setHwId($hwId)
  92. {
  93. $this->hwId = $hwId;
  94. $this->apiParas["hw_id"] = $hwId;
  95. }
  96. public function getHwId()
  97. {
  98. return $this->hwId;
  99. }
  100. public function setMedia($media)
  101. {
  102. $this->media = $media;
  103. $this->apiParas["media"] = $media;
  104. }
  105. public function getMedia()
  106. {
  107. return $this->media;
  108. }
  109. public function setPhoto($photo)
  110. {
  111. $this->photo = $photo;
  112. $this->apiParas["photo"] = $photo;
  113. }
  114. public function getPhoto()
  115. {
  116. return $this->photo;
  117. }
  118. public function setStudentId($studentId)
  119. {
  120. $this->studentId = $studentId;
  121. $this->apiParas["student_id"] = $studentId;
  122. }
  123. public function getStudentId()
  124. {
  125. return $this->studentId;
  126. }
  127. public function setStudentName($studentName)
  128. {
  129. $this->studentName = $studentName;
  130. $this->apiParas["student_name"] = $studentName;
  131. }
  132. public function getStudentName()
  133. {
  134. return $this->studentName;
  135. }
  136. public function setTeacherUserid($teacherUserid)
  137. {
  138. $this->teacherUserid = $teacherUserid;
  139. $this->apiParas["teacher_userid"] = $teacherUserid;
  140. }
  141. public function getTeacherUserid()
  142. {
  143. return $this->teacherUserid;
  144. }
  145. public function setVideo($video)
  146. {
  147. $this->video = $video;
  148. $this->apiParas["video"] = $video;
  149. }
  150. public function getVideo()
  151. {
  152. return $this->video;
  153. }
  154. public function getApiMethodName()
  155. {
  156. return "dingtalk.oapi.edu.homework.student.comment.create";
  157. }
  158. public function getApiParas()
  159. {
  160. return $this->apiParas;
  161. }
  162. public function check()
  163. {
  164. RequestCheckUtil::checkNotNull($this->bizCode,"bizCode");
  165. RequestCheckUtil::checkNotNull($this->classId,"classId");
  166. RequestCheckUtil::checkNotNull($this->hwId,"hwId");
  167. RequestCheckUtil::checkNotNull($this->studentId,"studentId");
  168. RequestCheckUtil::checkNotNull($this->teacherUserid,"teacherUserid");
  169. }
  170. public function putOtherTextParam($key, $value) {
  171. $this->apiParas[$key] = $value;
  172. $this->$key = $value;
  173. }
  174. }