OapiEduHomeworkUpdateRequest.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.edu.homework.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.04.29
  7. */
  8. class OapiEduHomeworkUpdateRequest
  9. {
  10. /**
  11. * 业务编码
  12. **/
  13. private $bizCode;
  14. /**
  15. * 作业ID
  16. **/
  17. private $hwId;
  18. /**
  19. * 幂等标识
  20. **/
  21. private $identifier;
  22. /**
  23. * 状态
  24. **/
  25. private $status;
  26. /**
  27. * 老师UserId
  28. **/
  29. private $teacherUserid;
  30. private $apiParas = array();
  31. public function setBizCode($bizCode)
  32. {
  33. $this->bizCode = $bizCode;
  34. $this->apiParas["biz_code"] = $bizCode;
  35. }
  36. public function getBizCode()
  37. {
  38. return $this->bizCode;
  39. }
  40. public function setHwId($hwId)
  41. {
  42. $this->hwId = $hwId;
  43. $this->apiParas["hw_id"] = $hwId;
  44. }
  45. public function getHwId()
  46. {
  47. return $this->hwId;
  48. }
  49. public function setIdentifier($identifier)
  50. {
  51. $this->identifier = $identifier;
  52. $this->apiParas["identifier"] = $identifier;
  53. }
  54. public function getIdentifier()
  55. {
  56. return $this->identifier;
  57. }
  58. public function setStatus($status)
  59. {
  60. $this->status = $status;
  61. $this->apiParas["status"] = $status;
  62. }
  63. public function getStatus()
  64. {
  65. return $this->status;
  66. }
  67. public function setTeacherUserid($teacherUserid)
  68. {
  69. $this->teacherUserid = $teacherUserid;
  70. $this->apiParas["teacher_userid"] = $teacherUserid;
  71. }
  72. public function getTeacherUserid()
  73. {
  74. return $this->teacherUserid;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "dingtalk.oapi.edu.homework.update";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->bizCode,"bizCode");
  87. RequestCheckUtil::checkNotNull($this->hwId,"hwId");
  88. RequestCheckUtil::checkNotNull($this->identifier,"identifier");
  89. RequestCheckUtil::checkNotNull($this->status,"status");
  90. RequestCheckUtil::checkNotNull($this->teacherUserid,"teacherUserid");
  91. }
  92. public function putOtherTextParam($key, $value) {
  93. $this->apiParas[$key] = $value;
  94. $this->$key = $value;
  95. }
  96. }