zhangqian
2024-04-16 45911c561e52453391f72726157bec7134fc8a82
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
package request
 
type PageInfo struct {
    Page     int `json:"page" form:"page"`         // 页码
    PageSize int `json:"pageSize" form:"pageSize"` // 每页大小
}
 
type SetCurrentDevice struct {
    CurrentDeviceID string `json:"currentDeviceID,omitempty"` //当前选定的生产设备
}
 
type DeviceConfig struct {
    NeedSetProcessParams bool `json:"needSetProcessParams,omitempty"` //是否需要设置工艺参数
}
 
type ReportWork struct {
    ProcedureId  uint   `json:"procedureId,string" binding:"required"` //工序id
    ReportAmount int    `json:"reportAmount"  binding:"required"`      //报工数量
    WorkerID     string `json:"workerID"`                              //报告者id
}
 
type ReportWorkList struct {
    PageInfo
    ProcedureId uint `json:"procedureId,string" binding:"required" form:"procedureId"` //工序id
}