123456789101112131415161718192021222324 |
- <?php
- declare(strict_types=1);
- namespace App\Constants;
- use Hyperf\Constants\AbstractConstants;
- use Hyperf\Constants\Annotation\Constants;
- /**
- * @Constants
- */
- #[Constants]
- class ErrorCode extends AbstractConstants
- {
- /**
- * @Message("Server Error!")
- */
- const SERVER_ERROR = 500;
- /**
- * @Message("success")
- */
- public const SUCCESS = 200;
- /**
- * @Message("error")
- */
- public const ERROR = 0;
- }
|