OapiAttendanceShiftUpdatepunchesRequest.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.attendance.shift.updatepunches request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.12.05
  7. */
  8. class OapiAttendanceShiftUpdatepunchesRequest
  9. {
  10. /**
  11. * 操作者userId
  12. **/
  13. private $opUserId;
  14. /**
  15. * 系统自动生成
  16. **/
  17. private $punches;
  18. /**
  19. * 班次id
  20. **/
  21. private $shiftId;
  22. private $apiParas = array();
  23. public function setOpUserId($opUserId)
  24. {
  25. $this->opUserId = $opUserId;
  26. $this->apiParas["op_user_id"] = $opUserId;
  27. }
  28. public function getOpUserId()
  29. {
  30. return $this->opUserId;
  31. }
  32. public function setPunches($punches)
  33. {
  34. $this->punches = $punches;
  35. $this->apiParas["punches"] = $punches;
  36. }
  37. public function getPunches()
  38. {
  39. return $this->punches;
  40. }
  41. public function setShiftId($shiftId)
  42. {
  43. $this->shiftId = $shiftId;
  44. $this->apiParas["shift_id"] = $shiftId;
  45. }
  46. public function getShiftId()
  47. {
  48. return $this->shiftId;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.attendance.shift.updatepunches";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->opUserId,"opUserId");
  61. RequestCheckUtil::checkNotNull($this->shiftId,"shiftId");
  62. }
  63. public function putOtherTextParam($key, $value) {
  64. $this->apiParas[$key] = $value;
  65. $this->$key = $value;
  66. }
  67. }