mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 17:07:49 +08:00
29 lines
603 B
PHP
29 lines
603 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Constants;
|
|
|
|
use Hyperf\Constants\AbstractConstants;
|
|
use Hyperf\Constants\Annotation\Constants;
|
|
use Hyperf\Constants\Annotation\Message;
|
|
use Hyperf\Constants\EnumConstantsTrait;
|
|
|
|
#[Constants]
|
|
class ResultCode extends AbstractConstants
|
|
{
|
|
use EnumConstantsTrait;
|
|
|
|
#[Message("success")]
|
|
final public const int SUCCESS = 0;
|
|
|
|
#[Message("failed")]
|
|
final public const int ERROR = 1;
|
|
|
|
#[Message("token已过期")]
|
|
final public const int JWT_EXPIRED = 10001;
|
|
|
|
#[Message("token错误")]
|
|
final public const int JWT_ERROR = 10002;
|
|
}
|