GetMyLikeListMessage.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace App\Generated\V1\Messages\UserHome;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class GetMyLikeListMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $page;
  10. protected $limit;
  11. protected $result;
  12. /**
  13. * 分页(页数)
  14. * @return int|null
  15. */
  16. public function getPage()
  17. {
  18. return $this->page;
  19. }
  20. /**
  21. * 每页多少
  22. * @return int|null
  23. */
  24. public function getLimit()
  25. {
  26. return $this->limit;
  27. }
  28. public function requestRules()
  29. {
  30. return [
  31. ['page', 'page', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null],
  32. ['limit', 'limit', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null],
  33. ];
  34. }
  35. public function responseRules()
  36. {
  37. return [
  38. ['result', 'result', 'bail', null, null],
  39. ];
  40. }
  41. public function setResponse($result)
  42. {
  43. $this->result = $result;
  44. }
  45. }