From e4fc307d58856a0b319c41f0930cd3b731cb0b24 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 11 二月 2025 10:19:47 +0800
Subject: [PATCH] 修复规律分析bug

---
 models/model.go |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/models/model.go b/models/model.go
index e4d5940..4b1a51a 100644
--- a/models/model.go
+++ b/models/model.go
@@ -2,17 +2,23 @@
 
 import (
 	"fmt"
+
 	"model-engine/db"
 )
 
 type Model interface {
 	Init(task *db.ModelTask) error
 	Run() error
+	KeepAlive() error
 	Shutdown() error
 }
 
 var modelRegistry = map[string]func() Model{
-	"gather": func() Model { return &GatherModel{} },
+	"gather":           func() Model { return &GatherModel{} },
+	"disappear":        func() Model { return &DisappearModel{} },
+	"location":         func() Model { return &LocationModel{} },
+	"night":            func() Model { return &nightModel{} },
+	"accessRegularity": func() Model { return &RegularityModel{} },
 	// 娣诲姞鍏朵粬妯″瀷
 }
 

--
Gitblit v1.8.0