package request type TerminalPant struct { Cmd int `json:"cmd"` //命令id 1020 Data struct { Ver string `json:"ver"` //版本号 Platform int `json:"platform"` //闸机状态 0-在线 1-离线 Turnstile string `json:"turnstile"` //闸机标识 Mode int `json:"mode"` //当前是否属于降级模式:0:正常在线比对模式 1:降级模式(离线比对模式) } `json:"data"` MsgID string `json:"msg_id"` //消息id 报文唯一标识 Time string `json:"time"` //时间戳 } type TerminalUpdateGet struct { Cmd int `json:"cmd"` //命令id 1050 Data struct { Flag int `json:"flag"` //获取更新文件标识,值为1 } `json:"data"` MsgID string `json:"msg_id"` //消息id 报文唯一标识 Time string `json:"time"` //时间戳 } type TerminalUpdatePut struct { Cmd int `json:"cmd"` //命令id 1060 Data struct { Ver string `json:"ver"` //版本号 Success int `json:"success"` //更新结果,0:失败 1:成功 Result string `json:"result"` //更新结果说明 } `json:"data"` MsgID string `json:"msg_id"` //消息id 报文唯一标识 Time string `json:"time"` //时间戳 }