ThumbPartnerMessage.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace App\Generated\V1\Messages\Partner;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. use App\Generated\V1\Enums\PartnerThumb;
  7. class ThumbPartnerMessage extends Message
  8. {
  9. use ValueHelper;
  10. protected $partnerId;
  11. protected $thumb;
  12. protected $result;
  13. /**
  14. * 卡片id
  15. * @return int
  16. */
  17. public function getPartnerId()
  18. {
  19. return $this->partnerId;
  20. }
  21. /**
  22. * 点赞与否
  23. * @return mixed
  24. */
  25. public function getThumb()
  26. {
  27. return $this->thumb;
  28. }
  29. public function requestRules()
  30. {
  31. return [
  32. ['partnerId', 'partner_id', 'bail|integer', Constants::INTEGER, null],
  33. ['thumb', 'thumb', PartnerThumb::class, Constants::ENUM, null],
  34. ];
  35. }
  36. public function responseRules()
  37. {
  38. return [
  39. ['result', 'result', 'bail', null, null],
  40. ];
  41. }
  42. public function setResponse($result)
  43. {
  44. $this->result = $result;
  45. }
  46. }