UpdateNoticeByGroupMessage.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace App\Generated\V1_1\Messages\Notice;
  3. use Kamicloud\StubApi\Concerns\ValueHelper;
  4. use Kamicloud\StubApi\Http\Messages\Message;
  5. use Kamicloud\StubApi\Utils\Constants;
  6. class UpdateNoticeByGroupMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $group;
  10. protected $isOpen;
  11. /**
  12. * 群组
  13. * @return string
  14. */
  15. public function getGroup()
  16. {
  17. return $this->group;
  18. }
  19. /**
  20. * 开关
  21. * @return boolean
  22. */
  23. public function getIsOpen()
  24. {
  25. return $this->isOpen;
  26. }
  27. /**
  28. * 开关
  29. * @return boolean
  30. */
  31. public function isIsOpen()
  32. {
  33. return $this->isOpen;
  34. }
  35. public function requestRules()
  36. {
  37. return [
  38. ['group', 'group', 'bail|string', Constants::STRING, null],
  39. ['isOpen', 'is_open', 'bail|boolean', Constants::BOOLEAN, null],
  40. ];
  41. }
  42. public function responseRules()
  43. {
  44. return [
  45. ];
  46. }
  47. public function setResponse()
  48. {
  49. }
  50. }