zhangqian
2023-10-30 f5eb41782ed6584664b797df820423f63490d4d3
model/request/task.go
@@ -31,3 +31,19 @@
   ProcedureId uint   `json:"procedureId" form:"procedureId" binding:"required"` //当前的工序id
   Number      string `json:"number" form:"number"  binding:"required"`          //当前正在使用的工艺参数编号
}
// TaskListByChannel 按channel返回任务列表请求参数
type TaskListByChannel struct {
   Offset  int       `json:"offset,omitempty"` //默认0
   Limit   int       `json:"limit,omitempty"`  //默认3
   Type    QueryType `json:"type,omitempty"`   //1 未完成 2 今天未完成 3 已完成
   Channel *int32    `json:"channel"`          //通道号。不传取全部的
}
type QueryType int
const (
   QueryTypeUnFinish QueryType = 1
   QueryTypeToday    QueryType = 2
   QueryTypeFinished QueryType = 3
)