zhangqian
2023-09-13 0c6d425b830358f4e339430ca88e2424a226e74a
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, &params)
   if !ok {
      return
   }