| | |
| | | } |
| | | |
| | | type SendProcessParams struct { |
| | | ProcedureId int `json:"procedureId" binding:"required"` |
| | | Channel int32 `json:"channel"` |
| | | ProcedureId uint `json:"procedureId" binding:"required"` |
| | | } |
| | | |
| | | type GetProductProgress struct { |
| | | ProcedureId int `json:"procedureId" binding:"required"` |
| | | ProcedureId uint `json:"procedureId"` |
| | | Channel int32 `json:"channel"` |
| | | } |
| | | |
| | | // ProcessModelList 工艺参数列表请求参数 |
| | | type ProcessModelList struct { |
| | | PageInfo |
| | | ProcedureId int `json:"procedureId" form:"procedureId" binding:"required"` //当前的工序id |
| | | Number string `json:"number" form:"number" binding:"required"` //当前正在使用的工艺参数编号 |
| | | ProcedureId uint `json:"procedureId" form:"procedureId" binding:"required"` //当前的工序id |
| | | } |
| | | |
| | | // TaskListByChannel 按channel返回任务列表请求参数 |
| | | type TaskListByChannel struct { |
| | | Offset int `json:"offset,omitempty" form:"offset"` //默认0 |
| | | Limit int `json:"limit,omitempty" form:"limit"` //默认3 |
| | | Type QueryType `json:"type,omitempty" form:"type"` //1 未完成 2 今天未完成 3 已完成 |
| | | Channel *int32 `json:"channel" form:"channel"` //通道号。不传取全部的 |
| | | DeviceID string `json:"deviceID"` |
| | | } |
| | | |
| | | type QueryType int |
| | | |
| | | const ( |
| | | QueryTypeUnFinish QueryType = 1 |
| | | QueryTypeToday QueryType = 2 |
| | | QueryTypeFinished QueryType = 3 |
| | | ) |