diff --git a/app/admin/scheme/SystemHost.php b/app/admin/scheme/SystemHost.php index 7b1ccf8..b5a3e29 100644 --- a/app/admin/scheme/SystemHost.php +++ b/app/admin/scheme/SystemHost.php @@ -27,6 +27,10 @@ class SystemHost extends BaseScheme #[Component(type: 'switch', options: ['离线', '在线'])] public $status; + #[Field(type: 'tinyint', length: 4, default: '0', comment: '是否主节点:0=否,1=是')] + #[Component(type: 'switch', options: ['否', '是'])] + public $is_master; + #[Field(type: 'datetime', comment: '最后心跳时间')] #[Component(type: 'date', options: [])] public $last_heartbeat_at; diff --git a/app/admin/scheme/SystemTimerConfig.php b/app/admin/scheme/SystemTimerConfig.php new file mode 100644 index 0000000..18b4a5e --- /dev/null +++ b/app/admin/scheme/SystemTimerConfig.php @@ -0,0 +1,53 @@ + 'main', 'auto' => 'auto', 'all' => 'all', 'manual' => 'manual'])] + public $run_type; + + #[Field(type: 'tinyint', length: 4, default: '1', comment: '状态:0=停用,1=启用')] + #[Component(type: 'switch', options: ['停用', '启用'])] + public $status; + + #[Field(type: 'tinyint', length: 4, default: '0', comment: '是否已同步:0=未同步,1=已同步')] + #[Component(type: 'switch', options: ['未同步', '已同步'])] + public $is_synced; + + #[Field(type: 'varchar', length: 100, nullable: true, comment: '最后执行节点ID')] + #[Component(type: 'text', options: [])] + public $last_execute_node; + + #[Field(type: 'int', length: 11, default: '0', comment: '最后执行时间戳', unsigned: true)] + #[Component(type: 'date', options: [])] + public $last_execute_time; + + #[Field(type: 'tinyint', length: 4, default: '0', comment: '手动触发标记:0=未触发,1=已触发')] + #[Component(type: 'switch', options: ['未触发', '已触发'])] + public $manual_trigger; + + #[Field(type: 'int', length: 11, comment: '创建时间', unsigned: true)] + #[Component(type: 'date', options: [])] + public $create_time; + + #[Field(type: 'int', length: 11, comment: '更新时间', unsigned: true)] + #[Component(type: 'date', options: [])] + public $update_time; +} diff --git a/app/admin/scheme/SystemTimerLog.php b/app/admin/scheme/SystemTimerLog.php new file mode 100644 index 0000000..4c7230e --- /dev/null +++ b/app/admin/scheme/SystemTimerLog.php @@ -0,0 +1,60 @@ +