OapiPlanetomFeedsStatisticGetRequest.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.planetom.feeds.statistic.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.03.26
  7. */
  8. class OapiPlanetomFeedsStatisticGetRequest
  9. {
  10. /**
  11. * 主播在对应组织的id(staffId)
  12. **/
  13. private $anchorId;
  14. /**
  15. * 课程id
  16. **/
  17. private $feedId;
  18. private $apiParas = array();
  19. public function setAnchorId($anchorId)
  20. {
  21. $this->anchorId = $anchorId;
  22. $this->apiParas["anchor_id"] = $anchorId;
  23. }
  24. public function getAnchorId()
  25. {
  26. return $this->anchorId;
  27. }
  28. public function setFeedId($feedId)
  29. {
  30. $this->feedId = $feedId;
  31. $this->apiParas["feed_id"] = $feedId;
  32. }
  33. public function getFeedId()
  34. {
  35. return $this->feedId;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "dingtalk.oapi.planetom.feeds.statistic.get";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. RequestCheckUtil::checkNotNull($this->anchorId,"anchorId");
  48. RequestCheckUtil::checkNotNull($this->feedId,"feedId");
  49. }
  50. public function putOtherTextParam($key, $value) {
  51. $this->apiParas[$key] = $value;
  52. $this->$key = $value;
  53. }
  54. }