mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-09-02 22:21:38 +08:00
feat(timer): 新增定时器配置、日志和主机的后台管理界面
T10: TimerConfig CURD - task management with run_type/status editing,
manual trigger button, task_name read-only, no add/delete
T11: TimerLog CURD - read-only log viewer with filters and color badges
T12: Host list enhanced - is_master column, setMaster button
This commit is contained in:
@@ -2,11 +2,30 @@
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use think\Model;
|
||||
use app\common\model\TimeModel;
|
||||
|
||||
class SystemTimerLog extends Model
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $task_name 任务名称
|
||||
* @property string $node_id 执行节点ID
|
||||
* @property string $run_type 运行类型
|
||||
* @property int $start_time 开始时间戳
|
||||
* @property int $end_time 结束时间戳
|
||||
* @property int $duration 耗时
|
||||
* @property string $status 状态:running/success/error
|
||||
* @property string $error_message 错误信息
|
||||
* @property int $concurrency_id 并发分片ID
|
||||
* @property int $create_time 创建时间
|
||||
*/
|
||||
class SystemTimerLog extends TimeModel
|
||||
{
|
||||
protected $name = 'system_timer_log';
|
||||
|
||||
protected $autoWriteTimestamp = true;
|
||||
protected $name = "system_timer_log";
|
||||
|
||||
protected $deleteTime = false;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user