| | |
| | | ctx.OkWithDetailed(taskData) |
| | | } |
| | | |
| | | // TaskStart |
| | | // GetProcessParams |
| | | // @Tags Task |
| | | // @Summary 任务开始 |
| | | // @Summary 任务开始(获取工艺参数) |
| | | // @Produce application/json |
| | | // @Param id path int true "工序id" |
| | | // @Success 200 {object} contextx.Response{data=response.ProcessParamsResponse} "成功" |
| | | // @Router /v1/task/start/{id} [get] |
| | | func (slf *TaskApi) TaskStart(c *gin.Context) { |
| | | func (slf *TaskApi) GetProcessParams(c *gin.Context) { |
| | | ctx, ok := contextx.NewContext(c, nil) |
| | | if !ok { |
| | | return |
| | |
| | | ctx.Ok() |
| | | } |
| | | |
| | | // SendProcessParams |
| | | // TaskStart |
| | | // @Tags Task |
| | | // @Summary 下发工艺参数 |
| | | // @Summary 下发工艺参数(开始任务) |
| | | // @Produce application/json |
| | | // @Param id path int true "工序id" |
| | | // @Success 200 {object} contextx.Response{service.GetProcessModel} "成功" |
| | | // @Router /v1/task/sendProcessParams/{id} [post] |
| | | func (slf *TaskApi) SendProcessParams(c *gin.Context) { |
| | | func (slf *TaskApi) TaskStart(c *gin.Context) { |
| | | ctx, ok := contextx.NewContext(c, nil) |
| | | if !ok { |
| | | return |