AI代码生成工具
This commit is contained in:
22
app/Enum/AiGenerationStatusEnum.php
Normal file
22
app/Enum/AiGenerationStatusEnum.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enum;
|
||||
|
||||
/**
|
||||
* AI 生成记录状态
|
||||
*/
|
||||
enum AiGenerationStatusEnum: int
|
||||
{
|
||||
case RUNNING = 0;
|
||||
case SUCCESS = 1;
|
||||
case FAIL = 2;
|
||||
|
||||
public function description(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::RUNNING => '进行中',
|
||||
self::SUCCESS => '成功',
|
||||
self::FAIL => '失败',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user