AddScoreBySuperVipMessage.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace App\Generated\V1_1\Messages\Pair;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class AddScoreBySuperVipMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $pairId;
  10. protected $couponId;
  11. protected $result;
  12. /**
  13. * 报名ID
  14. * @return int
  15. */
  16. public function getPairId()
  17. {
  18. return $this->pairId;
  19. }
  20. /**
  21. * 卡券ID
  22. * @return int
  23. */
  24. public function getCouponId()
  25. {
  26. return $this->couponId;
  27. }
  28. public function requestRules()
  29. {
  30. return [
  31. ['pairId', 'pair_id', 'bail|integer', Constants::INTEGER, null],
  32. ['couponId', 'coupon_id', 'bail|integer', Constants::INTEGER, 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. }