From 71b0e418839dda386043fb6cad1ec335bcdc06c6 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 09 十一月 2023 14:08:21 +0800
Subject: [PATCH] 增加设置是否跳过设置工艺参数接口

---
 router/index.go  |    1 +
 api/v1/device.go |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/api/v1/device.go b/api/v1/device.go
index eb079eb..e2d0385 100644
--- a/api/v1/device.go
+++ b/api/v1/device.go
@@ -56,14 +56,14 @@
 	ctx.Ok()
 }
 
-// SetDeviceConfig
+// Config
 // @Tags      璁惧
 // @Summary   璁剧疆璁惧涓�浜涢厤缃�
 // @Produce   application/json
 // @Param     object  body    request.DeviceConfig true  "鏌ヨ鍙傛暟"
 // @Success   200   {object}  contextx.Response{}  "鎴愬姛"
 // @Router    /v1/device/config [post]
-func (slf *DeviceApi) config(c *gin.Context) {
+func (slf *DeviceApi) Config(c *gin.Context) {
 	var params request.DeviceConfig
 	ctx, ok := contextx.NewContext(c, &params)
 	if !ok {
diff --git a/router/index.go b/router/index.go
index 85bdfd2..df7e1dd 100644
--- a/router/index.go
+++ b/router/index.go
@@ -73,6 +73,7 @@
 	{
 		deviceGroup.GET("list", deviceApi.DeviceList)                        // 鍙�夎澶囧垪琛�
 		deviceGroup.POST("setCurrentDeviceId", deviceApi.SetCurrentDeviceId) // 鍒囨崲璁惧ID
+		deviceGroup.POST("config", deviceApi.Config)                         // 閰嶇疆涓�浜涘瓧娈�
 	}
 
 	systemApi := new(v1.SystemApi)

--
Gitblit v1.8.0