From fca319958029fa924308e50cb61202d7d6ff5008 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期三, 19 二月 2025 13:33:37 +0800
Subject: [PATCH] 暂停聚集模型

---
 db/model.go     |    4 
 models/model.go |    2 
 db/db.go        |  154 +++++++++++++++++++++++++-------------------------
 3 files changed, 80 insertions(+), 80 deletions(-)

diff --git a/db/db.go b/db/db.go
index a71ef97..9ab8704 100644
--- a/db/db.go
+++ b/db/db.go
@@ -57,15 +57,15 @@
 // InitDefaultData 鍒濆鍖栨暟鎹�
 func InitDefaultData() error {
 	var models = []*Model{
-		{
-			BaseModel: BaseModel{
-				ID: ModelIdGather,
-			},
-			Name:        "鐤戜技鑱氶泦",
-			Description: "閫氱敤鑱氶泦妯″瀷",
-			Version:     "v1.0.2",
-			Enabled:     false,
-		},
+		//{
+		//	BaseModel: BaseModel{
+		//		ID: ModelIdGather,
+		//	},
+		//	Name:        "鐤戜技鑱氶泦",
+		//	Description: "閫氱敤鑱氶泦妯″瀷",
+		//	Version:     "v1.0.2",
+		//	Enabled:     false,
+		//},
 		{
 			BaseModel: BaseModel{
 				ID: ModelIdDisappear,
@@ -112,74 +112,74 @@
 	}
 
 	var rules = []*ModelRule{
-		{
-			Id:      "bfbdba7f-ee39-41fb-b188-b4c114a51eaa",
-			ModelId: ModelIdGather,
-			Scope:   "",
-			RuleArg: RuleArg{
-				Alias:    "gatherPersons",
-				Name:     "鑱氶泦浜烘暟",
-				Type:     "input",
-				Must:     true,
-				Unit:     "浜�",
-				Range:    "1,100",
-				Value:    "2",
-				ValType:  "int",
-				Operator: ">=",
-				Sort:     0,
-			},
-		},
-		{
-			Id:      "941bef84-ff7f-4460-b5dc-2ac6060304a4",
-			ModelId: ModelIdGather,
-			Scope:   "",
-			RuleArg: RuleArg{
-				Alias:    "appearInterval",
-				Name:     "鍑虹幇闂撮殧",
-				Type:     "input",
-				Must:     true,
-				Unit:     "绉�",
-				Range:    "1,7200",
-				Value:    "60",
-				ValType:  "int",
-				Operator: ">=",
-				Sort:     1,
-			},
-		},
-		{
-			Id:      "a9b50bae-2c40-40a1-9ebc-ac34850db964",
-			ModelId: ModelIdGather,
-			Scope:   "",
-			RuleArg: RuleArg{
-				Alias:    "threshold",
-				Name:     "鍑虹幇娆℃暟",
-				Type:     "input",
-				Must:     true,
-				Unit:     "娆�",
-				Range:    "1,60",
-				Value:    "1",
-				ValType:  "int",
-				Operator: ">=",
-				Sort:     2,
-			},
-		},
-		{
-			Id:      "aed7f95e-1ce6-4fa2-b1b3-aaf59ed86c50",
-			ModelId: ModelIdGather,
-			Scope:   "",
-			RuleArg: RuleArg{
-				Alias:    "daysWindow",
-				Name:     "鐩戞帶鏃堕棿",
-				Type:     "input",
-				Must:     true,
-				Unit:     "澶╁唴",
-				Range:    "1,7",
-				Value:    "1",
-				ValType:  "int",
-				Operator: "==",
-				Sort:     3,
-			},
-		},
+		//{
+		//	Id:      "bfbdba7f-ee39-41fb-b188-b4c114a51eaa",
+		//	ModelId: ModelIdGather,
+		//	Scope:   "",
+		//	RuleArg: RuleArg{
+		//		Alias:    "gatherPersons",
+		//		Name:     "鑱氶泦浜烘暟",
+		//		Type:     "input",
+		//		Must:     true,
+		//		Unit:     "浜�",
+		//		Range:    "1,100",
+		//		Value:    "2",
+		//		ValType:  "int",
+		//		Operator: ">=",
+		//		Sort:     0,
+		//	},
+		//},
+		//{
+		//	Id:      "941bef84-ff7f-4460-b5dc-2ac6060304a4",
+		//	ModelId: ModelIdGather,
+		//	Scope:   "",
+		//	RuleArg: RuleArg{
+		//		Alias:    "appearInterval",
+		//		Name:     "鍑虹幇闂撮殧",
+		//		Type:     "input",
+		//		Must:     true,
+		//		Unit:     "绉�",
+		//		Range:    "1,7200",
+		//		Value:    "60",
+		//		ValType:  "int",
+		//		Operator: ">=",
+		//		Sort:     1,
+		//	},
+		//},
+		//{
+		//	Id:      "a9b50bae-2c40-40a1-9ebc-ac34850db964",
+		//	ModelId: ModelIdGather,
+		//	Scope:   "",
+		//	RuleArg: RuleArg{
+		//		Alias:    "threshold",
+		//		Name:     "鍑虹幇娆℃暟",
+		//		Type:     "input",
+		//		Must:     true,
+		//		Unit:     "娆�",
+		//		Range:    "1,60",
+		//		Value:    "1",
+		//		ValType:  "int",
+		//		Operator: ">=",
+		//		Sort:     2,
+		//	},
+		//},
+		//{
+		//	Id:      "aed7f95e-1ce6-4fa2-b1b3-aaf59ed86c50",
+		//	ModelId: ModelIdGather,
+		//	Scope:   "",
+		//	RuleArg: RuleArg{
+		//		Alias:    "daysWindow",
+		//		Name:     "鐩戞帶鏃堕棿",
+		//		Type:     "input",
+		//		Must:     true,
+		//		Unit:     "澶╁唴",
+		//		Range:    "1,7",
+		//		Value:    "1",
+		//		ValType:  "int",
+		//		Operator: "==",
+		//		Sort:     3,
+		//	},
+		//},
 
 		// 鎵樼
 		{
diff --git a/db/model.go b/db/model.go
index dc1ca10..bd7c06b 100644
--- a/db/model.go
+++ b/db/model.go
@@ -183,8 +183,8 @@
 }
 
 const (
-	ModelIdDrug             = "drug"             // 娑夋瘨
-	ModelIdGather           = "gather"           // 鑱氶泦
+	ModelIdDrug = "drug" // 娑夋瘨
+	//ModelIdGather           = "gather"           // 鑱氶泦
 	ModelIdDisappear        = "disappear"        // 澶辫釜
 	ModelIdLocationAnalysis = "locationAnalysis" // 鍦烘墍鍒嗘瀽
 	ModelIdAccessRegularity = "accessRegularity" // 鍑鸿瑙勫緥鍒嗘瀽
diff --git a/models/model.go b/models/model.go
index 8a3b136..12e7b05 100644
--- a/models/model.go
+++ b/models/model.go
@@ -14,7 +14,7 @@
 }
 
 var modelRegistry = map[string]func() Model{
-	"gather":           func() Model { return &GatherModel{} },
+	//"gather":           func() Model { return &GatherModel{} },
 	"disappear":        func() Model { return &DisappearModel{} },
 	"locationAnalysis": func() Model { return &LocationModel{} },
 	"accessRegularity": func() Model { return &RegularityModel{} },

--
Gitblit v1.8.0