GetAloneGroupMessage.php 1.1 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 GetAloneGroupMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $stageId;
  10. protected $activityType;
  11. protected $result;
  12. /**
  13. * 期数
  14. * @return int|null
  15. */
  16. public function getStageId()
  17. {
  18. return $this->stageId;
  19. }
  20. /**
  21. * 获取类型(72h|qbj)【默认:72h】
  22. * @return string|null
  23. */
  24. public function getActivityType()
  25. {
  26. return $this->activityType;
  27. }
  28. public function requestRules()
  29. {
  30. return [
  31. ['stageId', 'stage_id', 'bail|nullable|integer', Constants::INTEGER | Constants::OPTIONAL, null],
  32. ['activityType', 'activity_type', 'bail|nullable|string', Constants::STRING | 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. }