zhangqian
2023-12-08 8e941bd782f574597f19c980982afade4dc11748
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package request
 
import "apsClient/constvar"
 
// TaskList 任务列表请求参数
type TaskList struct {
    PageInfo
    TaskMode constvar.TaskMode `json:"taskMode" form:"taskMode"`
}
 
type SendProcessParams struct {
    ProcedureId uint `json:"procedureId,string" binding:"required"`
}
 
type GetProductProgress struct {
    ProcedureId uint  `json:"procedureId,string"`
    Channel     int32 `json:"channel"`
}
 
// ProcessModelList 工艺参数列表请求参数
type ProcessModelList struct {
    PageInfo
    ProcedureId uint `json:"procedureId,string" 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
)