OapiEduHomeworkStudentReportSubmitRequest.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.edu.homework.student.report.submit request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.04.28
  7. */
  8. class OapiEduHomeworkStudentReportSubmitRequest
  9. {
  10. /**
  11. * 扩展属性
  12. **/
  13. private $attributes;
  14. /**
  15. * 业务编码
  16. **/
  17. private $bizCode;
  18. /**
  19. * 部门ID
  20. **/
  21. private $classId;
  22. /**
  23. * 作业ID
  24. **/
  25. private $hwId;
  26. /**
  27. * 作业报告
  28. **/
  29. private $hwReport;
  30. /**
  31. * 作业结果
  32. **/
  33. private $hwResult;
  34. /**
  35. * 学生ID
  36. **/
  37. private $studentId;
  38. /**
  39. * 学生姓名
  40. **/
  41. private $studentName;
  42. private $apiParas = array();
  43. public function setAttributes($attributes)
  44. {
  45. $this->attributes = $attributes;
  46. $this->apiParas["attributes"] = $attributes;
  47. }
  48. public function getAttributes()
  49. {
  50. return $this->attributes;
  51. }
  52. public function setBizCode($bizCode)
  53. {
  54. $this->bizCode = $bizCode;
  55. $this->apiParas["biz_code"] = $bizCode;
  56. }
  57. public function getBizCode()
  58. {
  59. return $this->bizCode;
  60. }
  61. public function setClassId($classId)
  62. {
  63. $this->classId = $classId;
  64. $this->apiParas["class_id"] = $classId;
  65. }
  66. public function getClassId()
  67. {
  68. return $this->classId;
  69. }
  70. public function setHwId($hwId)
  71. {
  72. $this->hwId = $hwId;
  73. $this->apiParas["hw_id"] = $hwId;
  74. }
  75. public function getHwId()
  76. {
  77. return $this->hwId;
  78. }
  79. public function setHwReport($hwReport)
  80. {
  81. $this->hwReport = $hwReport;
  82. $this->apiParas["hw_report"] = $hwReport;
  83. }
  84. public function getHwReport()
  85. {
  86. return $this->hwReport;
  87. }
  88. public function setHwResult($hwResult)
  89. {
  90. $this->hwResult = $hwResult;
  91. $this->apiParas["hw_result"] = $hwResult;
  92. }
  93. public function getHwResult()
  94. {
  95. return $this->hwResult;
  96. }
  97. public function setStudentId($studentId)
  98. {
  99. $this->studentId = $studentId;
  100. $this->apiParas["student_id"] = $studentId;
  101. }
  102. public function getStudentId()
  103. {
  104. return $this->studentId;
  105. }
  106. public function setStudentName($studentName)
  107. {
  108. $this->studentName = $studentName;
  109. $this->apiParas["student_name"] = $studentName;
  110. }
  111. public function getStudentName()
  112. {
  113. return $this->studentName;
  114. }
  115. public function getApiMethodName()
  116. {
  117. return "dingtalk.oapi.edu.homework.student.report.submit";
  118. }
  119. public function getApiParas()
  120. {
  121. return $this->apiParas;
  122. }
  123. public function check()
  124. {
  125. RequestCheckUtil::checkNotNull($this->bizCode,"bizCode");
  126. RequestCheckUtil::checkNotNull($this->classId,"classId");
  127. RequestCheckUtil::checkNotNull($this->hwId,"hwId");
  128. RequestCheckUtil::checkNotNull($this->studentId,"studentId");
  129. RequestCheckUtil::checkNotNull($this->studentName,"studentName");
  130. }
  131. public function putOtherTextParam($key, $value) {
  132. $this->apiParas[$key] = $value;
  133. $this->$key = $value;
  134. }
  135. }