feat: node traffic limit & batch operations

- Traffic monitoring with transfer_enable limit
- Batch delete nodes
- Reset traffic (single/batch)
This commit is contained in:
xboard
2026-03-30 02:50:56 +08:00
parent daf3055b42
commit a58d66d72e
8 changed files with 171 additions and 7 deletions
+7
View File
@@ -52,6 +52,10 @@ use Illuminate\Database\Eloquent\Casts\Attribute;
* @property int|null $d 下行流量
* @property int|null $total 总流量
* @property-read array|null $load_status 负载状态(包含CPU、内存、交换区、磁盘信息)
*
* @property int $transfer_enable 流量上限,0或者null表示不限制
* @property int $u 当前上传流量
* @property int $d 当前下载流量
*/
class Server extends Model
{
@@ -124,6 +128,9 @@ class Server extends Model
'updated_at' => 'timestamp',
'rate_time_ranges' => 'array',
'rate_time_enable' => 'boolean',
'transfer_enable' => 'integer',
'u' => 'integer',
'd' => 'integer',
];
private const MULTIPLEX_CONFIGURATION = [