From e77e66d681cd2676675d194211f171744e23b479 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 14 九月 2023 19:05:54 +0800
Subject: [PATCH] 从云端获取plc配置和plc地址

---
 api/v1/plc.go |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/api/v1/plc.go b/api/v1/plc.go
index cba0bbd..7fdf89d 100644
--- a/api/v1/plc.go
+++ b/api/v1/plc.go
@@ -2,6 +2,7 @@
 
 import (
 	"apsClient/constvar"
+	"apsClient/model/request"
 	"apsClient/model/response"
 	_ "apsClient/model/response"
 	"apsClient/pkg/contextx"
@@ -16,10 +17,12 @@
 // @Tags      鐢熶骇鏁伴噺
 // @Summary   鑾峰彇鐢熶骇杩涘害
 // @Produce   application/json
+// @Param     object  body    request.SendProcessParams true  "鏌ヨ鍙傛暟"
 // @Success   200   {object}  contextx.Response{data=response.ProductProgress}  "鎴愬姛"
-// @Router    /v1/plc/productProgress [get]
+// @Router    /v1/plc/productProgress [post]
 func (slf *PlcApi) GetProductProgress(c *gin.Context) {
-	ctx, ok := contextx.NewContext(c, nil)
+	var params request.GetProductProgress
+	ctx, ok := contextx.NewContext(c, &params)
 	if !ok {
 		return
 	}

--
Gitblit v1.8.0