ErrorCode.php 467 B

123456789101112131415161718192021222324
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Constants;
  4. use Hyperf\Constants\AbstractConstants;
  5. use Hyperf\Constants\Annotation\Constants;
  6. /**
  7. * @Constants
  8. */
  9. #[Constants]
  10. class ErrorCode extends AbstractConstants
  11. {
  12. /**
  13. * @Message("Server Error!")
  14. */
  15. const SERVER_ERROR = 500;
  16. /**
  17. * @Message("success")
  18. */
  19. public const SUCCESS = 200;
  20. /**
  21. * @Message("error")
  22. */
  23. public const ERROR = 0;
  24. }