zhangqian
2023-09-22 7788cb0ea88354718b2ad04ac29aea24e0b64911
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package response
 
import (
    "apsClient/model"
    "apsClient/model/common"
)
 
type PageResult struct {
    List     interface{} `json:"list"`
    Total    int64       `json:"total"`
    Page     int         `json:"page"`
    PageSize int         `json:"pageSize"`
}
 
type ListResponse struct {
    Code  int         `json:"code"`
    Msg   string      `json:"msg"`
    Data  interface{} `json:"data"`
    Count int64       `json:"count"`
}
 
type TaskData struct {
    Order     *model.Order
    Procedure *model.Procedures
 
    Position              int //当前任务在设备第几个位置
    AllProcedures         []string
    CurrentProcedureIndex int
    CanStarted            bool //是否可以开始生产
}
 
type TaskResponse struct {
    Tasks     []*TaskData
    TaskCount int64
    Workers   []*common.ProcedureWorker `json:"workers"` // 人员列表
}
 
type Config struct {
    DeviceName   string
    DeviceStatus string
}
 
type ProcessParamsResponse struct {
    Number string
    Params []ProcessParams
}
 
type ProcessParams struct {
    Key   string
    Value interface{}
}
 
type ProductProgress struct {
    FinishNumber int `json:"finishNumber"`
    TotalNumber  int `json:"totalNumber"`
    PlcStatus    int `json:"plcStatus"`
}
 
type TaskCountdown struct {
    CountDownHour   int64 //倒计时 时
    CountDownMinute int64 //倒计时 分
    ShowCountDown   bool  //是否展示倒计时
}