PddDdyPdpUsersGetRequest.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. namespace Com\Pdd\Pop\Sdk\Api\Request;
  3. use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
  4. use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
  5. class PddDdyPdpUsersGetRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Long, "owner_id")
  12. */
  13. private $ownerId;
  14. /**
  15. * @JsonProperty(String, "start_modified")
  16. */
  17. private $startModified;
  18. /**
  19. * @JsonProperty(String, "end_modified")
  20. */
  21. private $endModified;
  22. /**
  23. * @JsonProperty(Integer, "page_no")
  24. */
  25. private $pageNo;
  26. /**
  27. * @JsonProperty(Integer, "page_size")
  28. */
  29. private $pageSize;
  30. protected function setUserParams(&$params)
  31. {
  32. $this->setUserParam($params, "owner_id", $this->ownerId);
  33. $this->setUserParam($params, "start_modified", $this->startModified);
  34. $this->setUserParam($params, "end_modified", $this->endModified);
  35. $this->setUserParam($params, "page_no", $this->pageNo);
  36. $this->setUserParam($params, "page_size", $this->pageSize);
  37. }
  38. public function getVersion()
  39. {
  40. return "V1";
  41. }
  42. public function getDataType()
  43. {
  44. return "JSON";
  45. }
  46. public function getType()
  47. {
  48. return "pdd.ddy.pdp.users.get";
  49. }
  50. public function setOwnerId($ownerId)
  51. {
  52. $this->ownerId = $ownerId;
  53. }
  54. public function setStartModified($startModified)
  55. {
  56. $this->startModified = $startModified;
  57. }
  58. public function setEndModified($endModified)
  59. {
  60. $this->endModified = $endModified;
  61. }
  62. public function setPageNo($pageNo)
  63. {
  64. $this->pageNo = $pageNo;
  65. }
  66. public function setPageSize($pageSize)
  67. {
  68. $this->pageSize = $pageSize;
  69. }
  70. }