Files
hyperf_service/app/Constants/ApiCode.php
2024-11-25 18:02:40 +08:00

19 lines
321 B
PHP

<?php
namespace App\Constants;
use Hyperf\Constants\Annotation\Constants;
#[Constants]
class ApiCode extends ReturnCode
{
/**
* @Message("登录失败")
*/
public const int LOGIN_ERROR = 10001;
/**
* @Message("登录token已失效")
*/
public const int LOGIN_TOKEN_ERROR = 10002;
}