初始化项目

This commit is contained in:
2025-05-12 00:19:35 +08:00
parent f6e4638ee6
commit fc327e9f48
27 changed files with 11107 additions and 29 deletions

25
app/Enum/ProjectStatusEnum.php Executable file
View File

@@ -0,0 +1,25 @@
<?php
namespace App\Enum;
/**
* 状态码定义
*/
enum ProjectStatusEnum: int
{
// '状态 0草稿 1上架 2下架 3重构中'
case DRAFT = 0;
case ON_SHELF = 1;
case OFF_SHELF = 2;
case REBUILD = 3;
public function description(): string
{
return match ($this) {
self::DRAFT => '草稿',
self::ON_SHELF => '上架',
self::OFF_SHELF => '下架',
self::REBUILD => '重构中',
default => '未知状态',
};
}
}