ThumbPartnerMessage.php 1.3 KB

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