GetPopularityMessage.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 GetPopularityMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $popularity_share_end_at;
  10. protected $popularity_sign_end_at;
  11. protected $popularity_supvip_endat;
  12. protected $popularity;
  13. protected $base;
  14. public function requestRules()
  15. {
  16. return [
  17. ];
  18. }
  19. public function responseRules()
  20. {
  21. return [
  22. ['popularity_share_end_at', 'popularity_share_end_at', 'bail|integer', Constants::INTEGER, null],
  23. ['popularity_sign_end_at', 'popularity_sign_end_at', 'bail|integer', Constants::INTEGER, null],
  24. ['popularity_supvip_endat', 'popularity_supvip_endat', 'bail|integer', Constants::INTEGER, null],
  25. ['popularity', 'popularity', 'bail|integer', Constants::INTEGER, null],
  26. ['base', 'base', 'bail|integer', Constants::INTEGER, null],
  27. ];
  28. }
  29. public function setResponse($popularity_share_end_at, $popularity_sign_end_at, $popularity_supvip_endat, $popularity, $base)
  30. {
  31. $this->popularity_share_end_at = $popularity_share_end_at;
  32. $this->popularity_sign_end_at = $popularity_sign_end_at;
  33. $this->popularity_supvip_endat = $popularity_supvip_endat;
  34. $this->popularity = $popularity;
  35. $this->base = $base;
  36. }
  37. }