用户相关api、jwt接入

This commit is contained in:
2025-05-05 14:20:17 +08:00
parent 147b2d3fd5
commit bd26d52fff
11 changed files with 660 additions and 27 deletions

20
app/Enum/StatusEnum.php Executable file
View File

@@ -0,0 +1,20 @@
<?php
namespace App\Enum;
/**
* 状态码定义
*/
enum StatusEnum: int
{
// 状态 0正常 1禁用
case NORMAL = 0;
case DISABLE = 1;
public function description(): string
{
return match ($this) {
self::NORMAL => '正常',
self::DISABLE => '禁用',
};
}
}