zhangqian
2023-10-31 dd75b36c03049be232a94d97eff1c4a5cc751fb5
model/request/task.go
@@ -15,6 +15,7 @@
type TaskList struct {
   PageInfo
   TaskMode constvar.TaskMode `json:"taskMode" form:"taskMode"`
   DeviceID string            `json:"deviceID"`
}
type SendProcessParams struct {
@@ -34,10 +35,11 @@
// 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"`         //通道号。不传取全部的
   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