GetNoticeByKeyToIntMessage.php 788 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 GetNoticeByKeyToIntMessage extends Message
  7. {
  8. use ValueHelper;
  9. protected $key;
  10. protected $result;
  11. /**
  12. * 通知key
  13. * @return string
  14. */
  15. public function getKey()
  16. {
  17. return $this->key;
  18. }
  19. public function requestRules()
  20. {
  21. return [
  22. ['key', 'key', 'bail|string', Constants::STRING, null],
  23. ];
  24. }
  25. public function responseRules()
  26. {
  27. return [
  28. ['result', 'result', 'bail', null, null],
  29. ];
  30. }
  31. public function setResponse($result)
  32. {
  33. $this->result = $result;
  34. }
  35. }