爬虫开发
This commit is contained in:
20
app/Enums/CrawlTargetModule.php
Normal file
20
app/Enums/CrawlTargetModule.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum CrawlTargetModule: string
|
||||
{
|
||||
case Tool = 'tool';
|
||||
case Model = 'model';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Tool => 'AI 工具',
|
||||
self::Model => 'AI 模型',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user