| | |
| | | } |
| | | } |
| | | |
| | | taskResponse.Prompt = conf.Conf.Prompt |
| | | |
| | | ctx.OkWithDetailed(taskResponse) |
| | | } |
| | | |
| | |
| | | "slaveId": 0, |
| | | "package": "goborrow", |
| | | "standbyTime": 300 |
| | | }, |
| | | "prompt": { |
| | | "safeProduce": "请确认安全生产!" |
| | | } |
| | | } |
| | | |
| | |
| | | StandbyTime int64 |
| | | } |
| | | |
| | | Prompt struct { |
| | | SafeProduce string `json:"safeProduce,omitempty"` |
| | | } |
| | | |
| | | config struct { |
| | | // 系统配置 |
| | | System System |
| | |
| | | |
| | | //PLC |
| | | PLC plc |
| | | |
| | | Prompt Prompt |
| | | } |
| | | ) |
| | | |
| | |
| | | package response |
| | | |
| | | import ( |
| | | "apsClient/conf" |
| | | "apsClient/model" |
| | | "apsClient/model/common" |
| | | ) |
| | |
| | | Tasks []*TaskData |
| | | TaskCount int64 |
| | | Workers []*common.ProcedureWorker `json:"workers"` // 人员列表 |
| | | Prompt conf.Prompt |
| | | } |
| | | |
| | | type Config struct { |