初始化本地仓库

This commit is contained in:
2026-08-31 11:33:59 +08:00
commit 663f74b633
2390 changed files with 402918 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
namespace core\jwt\enum;
/**
* 登录模式枚举
*/
enum LoginMode: string
{
/**
* 单端登录模式 - 同一用户只能在一个设备登录,新登录会踢掉旧登录
*/
case SINGLE = 'single';
/**
* 客户端模式 - 同一客户端只能在一个设备登录,不同客户端可同时登录
*/
case CLIENT = 'client';
/**
* 多端模式 - 同一用户可在多个设备同时登录
*/
case MULTI = 'multi';
/**
* 获取枚举值
*/
public function value(): string
{
return $this->value;
}
}