mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 20:27:49 +08:00
32 lines
693 B
PHP
32 lines
693 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;
|
|
|
|
#[Message("旧密码错误")]
|
|
final public const int OLD_PASSWORD_ERROR = 10003;
|
|
}
|