From ef51da5404827e826e979ad614950a9e0192f4c6 Mon Sep 17 00:00:00 2001
From: qixiaoning <jony.kee@outlook.com>
Date: 星期五, 08 八月 2025 09:15:26 +0800
Subject: [PATCH] 调整数据推送相关接口

---
 push-service/controllers/pushSet.go |  142 ++++++++++++++++++++++++++---------------------
 1 files changed, 79 insertions(+), 63 deletions(-)

diff --git a/push-service/controllers/pushSet.go b/push-service/controllers/pushSet.go
index a7c59a8..1387a8e 100644
--- a/push-service/controllers/pushSet.go
+++ b/push-service/controllers/pushSet.go
@@ -1,10 +1,11 @@
 package controllers
 
 import (
-	"basic.com/valib/bhomeclient.git"
-	"basic.com/valib/logger.git"
 	"vamicro/config"
 	"vamicro/push-service/vo"
+
+	"basic.com/valib/bhomeclient.git"
+	"basic.com/valib/logger.git"
 )
 
 type PushSetController struct {
@@ -36,18 +37,32 @@
 			{Checked: true, Id: "cameraAddr", Name: "鎽勫儚鏈哄湴鍧�", Alias: "cameraAddr"},
 		},
 	}
-	sceneInfoSet := vo.PushSetMenu{
-		Id:      "alarmRules", //鎶ヨ瑙勫垯
-		Name:    "鍦烘櫙淇℃伅",
-		Alias:   "alarmRules",
+	// sceneInfoSet := vo.PushSetMenu{
+	// 	Id:      "alarmRules", //鎶ヨ瑙勫垯
+	// 	Name:    "鍦烘櫙淇℃伅",
+	// 	Alias:   "alarmRules",
+	// 	Checked: true,
+	// 	Children: []vo.PushSetMenu{
+	// 		{Checked: true, Id: "taskId", Name: "鍦烘櫙ID", Alias: "taskId"},
+	// 		{Checked: true, Id: "taskName", Name: "鍦烘櫙鍚嶇О", Alias: "taskName"},
+	// 		{Checked: true, Id: "alarmRules.#.alarmLevel", Name: "浜嬩欢绛夌骇", Alias: "alarmLevel"},
+	// 		{Checked: true, Id: "alarmRules.#.ruleText", Name: "鍦烘櫙鎻忚堪", Alias: "groupText"},
+	// 		{Checked: true, Id: "alarmRules.#.linkInfo", Name: "鑱斿姩淇℃伅", Alias: "linkInfo"},
+	// 		{Checked: true, Id: "alarmRules.#.groupId", Name: "鎶ヨ瑙勫垯缁刬d", Alias: "groupId"},
+	// 	},
+	// }
+	taskInfoSet := vo.PushSetMenu{
+		Id:      "aiTasks", //ai浠诲姟
+		Name:    "浠诲姟淇℃伅",
+		Alias:   "aiTasks",
 		Checked: true,
 		Children: []vo.PushSetMenu{
-			{Checked: true, Id: "taskId", Name: "鍦烘櫙ID", Alias: "taskId"},
-			{Checked: true, Id: "taskName", Name: "鍦烘櫙鍚嶇О", Alias: "taskName"},
-			{Checked: true, Id: "alarmRules.#.alarmLevel", Name: "浜嬩欢绛夌骇", Alias: "alarmLevel"},
-			{Checked: true, Id: "alarmRules.#.ruleText", Name: "鍦烘櫙鎻忚堪", Alias: "groupText"},
-			{Checked: true, Id: "alarmRules.#.linkInfo", Name: "鑱斿姩淇℃伅", Alias: "linkInfo"},
-			{Checked: true, Id: "alarmRules.#.groupId", Name: "鎶ヨ瑙勫垯缁刬d", Alias: "groupId"},
+			{Checked: true, Id: "taskId", Name: "浠诲姟id", Alias: "taskId"},
+			{Checked: true, Id: "taskName", Name: "浠诲姟鍚嶇О", Alias: "taskName"},
+			{Checked: true, Id: "aiTasks.#.eventLevel", Name: "浜嬩欢绛夌骇", Alias: "eventLevel"},
+			{Checked: true, Id: "aiTasks.#.workingTime", Name: "鏃堕棿娈�", Alias: "workingTime"},
+			{Checked: true, Id: "aiTasks.#.rules", Name: "浠诲姟鎻忚堪", Alias: "rules"},
+			{Checked: true, Id: "aiTasks.#.taskDescription", Name: "澶囨敞", Alias: "taskDescription"},
 		},
 	}
 	serverSet := vo.PushSetMenu{
@@ -87,57 +102,58 @@
 			{Checked: true, Id: "isAlarm", Name: "鏄惁鎶ヨ", Alias: "isAlarm"},
 		},
 	}
-	detectAreaSet := vo.PushSetMenu{
-		Id:      "detectAreaInfo",
-		Name:    "妫�娴嬪尯鍩�",
-		Alias:   "detectAreaInfo",
-		Checked: true,
-		Children: []vo.PushSetMenu{
-			{Checked: true, Id: "targetInfo.#.areaId", Name: "妫�娴嬪尯鍩焛d", Alias: "areaId"},
-			{Checked: true, Id: "targetInfo.#.areaName", Name: "妫�娴嬪尯鍩熷悕绉�", Alias: "areaName"},
-		},
-	}
-	targetSet := vo.PushSetMenu{
-		Id:      "targetInfo",
-		Name:    "鐩爣",
-		Alias:   "targetInfo",
-		Checked: true,
-		Children: []vo.PushSetMenu{
-			{Checked: true, Id: "targetInfo.#.attribute", Name: "绠楁硶灞炴��", Alias: "attribute"},
-			{Checked: true, Id: "targetInfo.#.targetLocation", Name: "鐩爣鍧愭爣", Alias: "targetLocation"},
-			{Checked: true, Id: "targetInfo.#.targetScore", Name: "鐩爣缃俊搴�", Alias: "targetScore"},
-			{Checked: true, Id: "targetInfo.#.targetType", Name: "鐩爣绫诲埆", Alias: "targetType"},
-		},
-	}
-	dtSet := vo.PushSetMenu{
-		Id:      "tableInfo",
-		Name:    "搴曞簱淇℃伅",
-		Alias:   "tableInfo",
-		Checked: true,
-		Children: []vo.PushSetMenu{
-			{Checked: true, Id: "baseInfo.#.tableId", Name: "搴曞簱ID", Alias: "tableId"},
-			{Checked: true, Id: "baseInfo.#.tableName", Name: "搴曞簱鍚嶇О", Alias: "tableName"},
-			{Checked: true, Id: "baseInfo.#.bwType", Name: "榛戠櫧鍚嶅崟", Alias: "bwType"},
-			{Checked: true, Id: "baseInfo.#.targetPicUrl", Name: "鐩爣鎶撴媿鍥剧墖", Alias: "targetPicUrl"},
-			{Checked: true, Id: "baseInfo.#.compareScore", Name: "鐩镐技搴�", Alias: "compareScore"},
-			{Checked: true, Id: "baseInfo.#.content", Name: "鍐呭", Alias: "content"},
-		},
-	}
-	dbpInfo := vo.PushSetMenu{
-		Id:      "baseInfo",
-		Name:    "搴曞簱浜哄憳淇℃伅",
-		Alias:   "baseInfo",
-		Checked: true,
-		Children: []vo.PushSetMenu{
-			{Checked: true, Id: "baseInfo.#.targetId", Name: "鐩爣ID", Alias: "targetId"},
-			{Checked: true, Id: "baseInfo.#.targetName", Name: "濮撳悕", Alias: "targetName"},
-			{Checked: true, Id: "baseInfo.#.sex", Name: "鎬у埆", Alias: "sex"},
-			{Checked: true, Id: "baseInfo.#.idCard", Name: "韬唤璇佸彿", Alias: "idCard"},
-			{Checked: true, Id: "baseInfo.#.phoneNum", Name: "鎵嬫満鍙�", Alias: "phoneNum"},
-			{Checked: true, Id: "baseInfo.#.monitorLevel", Name: "浜哄憳绛夌骇", Alias: "monitorLevel"},
-		},
-	}
-	set = append(set, camInfoSet, sceneInfoSet, serverSet, dataSet, detectAreaSet, targetSet, dtSet, dbpInfo)
+	// detectAreaSet := vo.PushSetMenu{
+	// 	Id:      "detectAreaInfo",
+	// 	Name:    "妫�娴嬪尯鍩�",
+	// 	Alias:   "detectAreaInfo",
+	// 	Checked: true,
+	// 	Children: []vo.PushSetMenu{
+	// 		{Checked: true, Id: "targetInfo.#.areaId", Name: "妫�娴嬪尯鍩焛d", Alias: "areaId"},
+	// 		{Checked: true, Id: "targetInfo.#.areaName", Name: "妫�娴嬪尯鍩熷悕绉�", Alias: "areaName"},
+	// 	},
+	// }
+	// targetSet := vo.PushSetMenu{
+	// 	Id:      "targetInfo",
+	// 	Name:    "鐩爣",
+	// 	Alias:   "targetInfo",
+	// 	Checked: true,
+	// 	Children: []vo.PushSetMenu{
+	// 		{Checked: true, Id: "targetInfo.#.attribute", Name: "绠楁硶灞炴��", Alias: "attribute"},
+	// 		{Checked: true, Id: "targetInfo.#.targetLocation", Name: "鐩爣鍧愭爣", Alias: "targetLocation"},
+	// 		{Checked: true, Id: "targetInfo.#.targetScore", Name: "鐩爣缃俊搴�", Alias: "targetScore"},
+	// 		{Checked: true, Id: "targetInfo.#.targetType", Name: "鐩爣绫诲埆", Alias: "targetType"},
+	// 	},
+	// }
+	// dtSet := vo.PushSetMenu{
+	// 	Id:      "tableInfo",
+	// 	Name:    "搴曞簱淇℃伅",
+	// 	Alias:   "tableInfo",
+	// 	Checked: true,
+	// 	Children: []vo.PushSetMenu{
+	// 		{Checked: true, Id: "baseInfo.#.tableId", Name: "搴曞簱ID", Alias: "tableId"},
+	// 		{Checked: true, Id: "baseInfo.#.tableName", Name: "搴曞簱鍚嶇О", Alias: "tableName"},
+	// 		{Checked: true, Id: "baseInfo.#.bwType", Name: "榛戠櫧鍚嶅崟", Alias: "bwType"},
+	// 		{Checked: true, Id: "baseInfo.#.targetPicUrl", Name: "鐩爣鎶撴媿鍥剧墖", Alias: "targetPicUrl"},
+	// 		{Checked: true, Id: "baseInfo.#.compareScore", Name: "鐩镐技搴�", Alias: "compareScore"},
+	// 		{Checked: true, Id: "baseInfo.#.content", Name: "鍐呭", Alias: "content"},
+	// 	},
+	// }
+	// dbpInfo := vo.PushSetMenu{
+	// 	Id:      "baseInfo",
+	// 	Name:    "搴曞簱浜哄憳淇℃伅",
+	// 	Alias:   "baseInfo",
+	// 	Checked: true,
+	// 	Children: []vo.PushSetMenu{
+	// 		{Checked: true, Id: "baseInfo.#.targetId", Name: "鐩爣ID", Alias: "targetId"},
+	// 		{Checked: true, Id: "baseInfo.#.targetName", Name: "濮撳悕", Alias: "targetName"},
+	// 		{Checked: true, Id: "baseInfo.#.sex", Name: "鎬у埆", Alias: "sex"},
+	// 		{Checked: true, Id: "baseInfo.#.idCard", Name: "韬唤璇佸彿", Alias: "idCard"},
+	// 		{Checked: true, Id: "baseInfo.#.phoneNum", Name: "鎵嬫満鍙�", Alias: "phoneNum"},
+	// 		{Checked: true, Id: "baseInfo.#.monitorLevel", Name: "浜哄憳绛夌骇", Alias: "monitorLevel"},
+	// 	},
+	// }
+	// set = append(set, camInfoSet, sceneInfoSet, serverSet, dataSet, detectAreaSet, targetSet, dtSet, dbpInfo)
+	set = append(set, camInfoSet, taskInfoSet, serverSet, dataSet)
 
 	return &bhomeclient.Reply{Success: true, Data: set}
 }

--
Gitblit v1.8.0