feat(api): 新增节点墙状态检测闭环

新增父节点墙状态检测任务、结果上报与节点列表状态装饰,
支持子节点继承父节点检测结果并通过 WS/REST 双链路执行

管理端补充墙状态筛选、搜索、单行与批量检测入口,
同时更新知识库归档并新增后续自动上线方案包
This commit is contained in:
yinjianm
2026-04-27 23:45:44 +08:00
parent b3a8d504d1
commit 9af9dd0df7
23 changed files with 1365 additions and 7 deletions
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void
{
Schema::create('server_gfw_checks', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('server_id');
$table->string('status', 32)->default('pending');
$table->unsignedBigInteger('triggered_by')->nullable();
$table->json('summary')->nullable();
$table->json('operator_summary')->nullable();
$table->json('raw_result')->nullable();
$table->text('error_message')->nullable();
$table->unsignedInteger('checked_at')->nullable();
$table->timestamps();
$table->foreign('server_id')->references('id')->on('v2_server')->cascadeOnDelete();
$table->index(['server_id', 'created_at']);
$table->index(['server_id', 'status']);
});
}
public function down(): void
{
Schema::dropIfExists('server_gfw_checks');
}
};