From 0c6d425b830358f4e339430ca88e2424a226e74a Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 13 九月 2023 17:09:10 +0800 Subject: [PATCH] 适应性改动 --- api/v1/plc.go | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/api/v1/plc.go b/api/v1/plc.go index cba0bbd..907e8d8 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] func (slf *PlcApi) GetProductProgress(c *gin.Context) { - ctx, ok := contextx.NewContext(c, nil) + var params request.SendProcessParams + ctx, ok := contextx.NewContext(c, ¶ms) if !ok { return } -- Gitblit v1.8.0