From 24991928e6b6123751c05f166678883a89e4bf0a Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 03 十一月 2023 16:19:41 +0800
Subject: [PATCH] fix

---
 router/index.go |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/router/index.go b/router/index.go
index a16940f..e0e357c 100644
--- a/router/index.go
+++ b/router/index.go
@@ -41,6 +41,7 @@
 		taskGroup.POST("sendProcessParams", taskApi.TaskStart)             // 涓嬪彂宸ヨ壓鍙傛暟骞跺紑濮嬪伐搴�
 		taskGroup.POST("updateProcessParams", taskApi.UpdateProcessParams) // 鏇存柊宸ヨ壓鍙傛暟
 		taskGroup.PUT("finish/:id", taskApi.TaskFinish)                    // 瀹屾垚宸ュ簭
+		taskGroup.GET("list", taskApi.TaskListByChannel)                   //鎸夐�氶亾鍙峰拰鏌ヨ绫诲瀷鏌ヨ浠诲姟鍒楄〃
 	}
 
 	configApi := new(v1.ConfigApi)
@@ -67,6 +68,19 @@
 		processModelGroup.GET("list", processModelApi.List) // 宸ヨ壓鍙傛暟鍒楄〃
 	}
 
+	deviceApi := new(v1.DeviceApi)
+	deviceGroup := v1Group.Group("device")
+	{
+		deviceGroup.GET("list", deviceApi.DeviceList)                       // 鍙�夎澶囧垪琛�
+		deviceGroup.GET("setCurrentDeviceId", deviceApi.SetCurrentDeviceId) // 鍒囨崲璁惧ID
+	}
+
+	systemApi := new(v1.SystemApi)
+	systemGroup := v1Group.Group("system")
+	{
+		systemGroup.GET("problemList", systemApi.ProblemList) // 闂璇婃柇鍒楄〃
+	}
+
 	//eventsApi := new(v1.EventsApi)
 	//eventsGroup := v1Group.Group("events")
 	//{

--
Gitblit v1.8.0