zhangqian
2023-11-09 02a84fb6fb2a39bfe7fc5cf6c0137bbf231b17fe
api/v1/plc.go
@@ -19,7 +19,7 @@
// @Tags      生产数量
// @Summary   获取生产进度
// @Produce   application/json
// @Param     object  body    request.SendProcessParams true  "查询参数"
// @Param     object  body    request.GetProductProgress true  "查询参数"
// @Success   200   {object}  contextx.Response{data=response.ProductProgress}  "成功"
// @Router    /v1/plc/productProgress [post]
func (slf *PlcApi) GetProductProgress(c *gin.Context) {
@@ -46,6 +46,9 @@
   }
   resp.PlcStatus = plcStatus
   resp.RealStartTime = service.TaskStartTimeGet(params.Channel)
   resp.RealEndTime = service.TaskEndTimeGet(params.Channel)
   ctx.OkWithDetailed(resp)
}