项目相关功能完善

This commit is contained in:
2025-05-08 14:10:45 +08:00
parent 8ea4f2bafd
commit 0d51623bbf
4 changed files with 65 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Enum;
/**
* 状态码定义
*/
enum ProjectFieldTypeEnum: int
{
case SOLD = 1;
case SELECTED = 2;
case CAROUSEL = 3;
public function description(): string
{
return match ($this) {
self::SELECTED => 'is_selected',
self::CAROUSEL => 'is_carousel',
self::SOLD => 'is_sold',
};
}
}