OapiEduStudentAttendanceStatisticsGetRequest.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.edu.student.attendance.statistics.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.12.24
  7. */
  8. class OapiEduStudentAttendanceStatisticsGetRequest
  9. {
  10. /**
  11. * 指定获取哪一天的数据,格式为yyyyMMdd
  12. **/
  13. private $date;
  14. /**
  15. * 当前操作人的用户ID
  16. **/
  17. private $opUserid;
  18. /**
  19. * 指定获取那个学校的数据,学校的CorpId
  20. **/
  21. private $schoolCorpid;
  22. private $apiParas = array();
  23. public function setDate($date)
  24. {
  25. $this->date = $date;
  26. $this->apiParas["date"] = $date;
  27. }
  28. public function getDate()
  29. {
  30. return $this->date;
  31. }
  32. public function setOpUserid($opUserid)
  33. {
  34. $this->opUserid = $opUserid;
  35. $this->apiParas["op_userid"] = $opUserid;
  36. }
  37. public function getOpUserid()
  38. {
  39. return $this->opUserid;
  40. }
  41. public function setSchoolCorpid($schoolCorpid)
  42. {
  43. $this->schoolCorpid = $schoolCorpid;
  44. $this->apiParas["school_corpid"] = $schoolCorpid;
  45. }
  46. public function getSchoolCorpid()
  47. {
  48. return $this->schoolCorpid;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.edu.student.attendance.statistics.get";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->date,"date");
  61. RequestCheckUtil::checkNotNull($this->opUserid,"opUserid");
  62. RequestCheckUtil::checkNotNull($this->schoolCorpid,"schoolCorpid");
  63. }
  64. public function putOtherTextParam($key, $value) {
  65. $this->apiParas[$key] = $value;
  66. $this->$key = $value;
  67. }
  68. }