爬虫开发
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled

This commit is contained in:
cjd
2026-02-18 12:56:36 +08:00
parent a98bc6f13c
commit 260460df03
45 changed files with 4091 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
namespace App\Enums;
enum CrawlAlertSeverity: string
{
case Info = 'info';
case Warning = 'warning';
case Error = 'error';
case Critical = 'critical';
}

View File

@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace App\Enums;
enum CrawlRunItemStatus: string
{
case Success = 'success';
case Failed = 'failed';
case Skipped = 'skipped';
}

View File

@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Enums;
enum CrawlRunStatus: string
{
case Pending = 'pending';
case Running = 'running';
case Completed = 'completed';
case Partial = 'partial';
case Failed = 'failed';
}

View 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 模型',
};
}
}

View File

@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace App\Enums;
enum CrawlTriggerType: string
{
case Schedule = 'schedule';
case Manual = 'manual';
case Retry = 'retry';
}