OapiEduCardTaskSubmitRequest.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.edu.card.task.submit request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.08.23
  7. */
  8. class OapiEduCardTaskSubmitRequest
  9. {
  10. /**
  11. * 打卡类型,跳绳:jump
  12. **/
  13. private $cardType;
  14. /**
  15. * 打卡内容
  16. **/
  17. private $content;
  18. /**
  19. * 计量数量
  20. **/
  21. private $meteringNumber;
  22. /**
  23. * 任务id
  24. **/
  25. private $userCardTaskId;
  26. /**
  27. * 用户id
  28. **/
  29. private $userid;
  30. private $apiParas = array();
  31. public function setCardType($cardType)
  32. {
  33. $this->cardType = $cardType;
  34. $this->apiParas["card_type"] = $cardType;
  35. }
  36. public function getCardType()
  37. {
  38. return $this->cardType;
  39. }
  40. public function setContent($content)
  41. {
  42. $this->content = $content;
  43. $this->apiParas["content"] = $content;
  44. }
  45. public function getContent()
  46. {
  47. return $this->content;
  48. }
  49. public function setMeteringNumber($meteringNumber)
  50. {
  51. $this->meteringNumber = $meteringNumber;
  52. $this->apiParas["metering_number"] = $meteringNumber;
  53. }
  54. public function getMeteringNumber()
  55. {
  56. return $this->meteringNumber;
  57. }
  58. public function setUserCardTaskId($userCardTaskId)
  59. {
  60. $this->userCardTaskId = $userCardTaskId;
  61. $this->apiParas["user_card_task_id"] = $userCardTaskId;
  62. }
  63. public function getUserCardTaskId()
  64. {
  65. return $this->userCardTaskId;
  66. }
  67. public function setUserid($userid)
  68. {
  69. $this->userid = $userid;
  70. $this->apiParas["userid"] = $userid;
  71. }
  72. public function getUserid()
  73. {
  74. return $this->userid;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "dingtalk.oapi.edu.card.task.submit";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. }
  87. public function putOtherTextParam($key, $value) {
  88. $this->apiParas[$key] = $value;
  89. $this->$key = $value;
  90. }
  91. }