From 807f16107a8bb3eb13c29b4862b97196df1de5b5 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Tue, 20 Jul 2021 17:29:35 +0800 Subject: [PATCH] a --- business/jxstore/event/event_tcp.go | 1 + business/model/print.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index b3c41a63f..840ffa01d 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -38,6 +38,7 @@ const ( printerStatusOnlineWithoutPaper = 2 //在线缺纸 printerStatusOnline = 1 //在线 printerStatusOffline = -1 //离线 + printerStatusOverFlow = -2 //流量超了 ) //标签 diff --git a/business/model/print.go b/business/model/print.go index 3052ad609..6db89b0c0 100644 --- a/business/model/print.go +++ b/business/model/print.go @@ -19,7 +19,8 @@ type Printer struct { Name string `json:"name"` //打印机备注名 Status int `json:"status"` //打印机状态 IsOnline int `json:"is_online"` //1在线,0离线 - SIM string `orm:"column(sim)" json:"sim"` //sim卡号 + IccID string `orm:"column(icc_id)" json:"iccid"` //sim卡号 Sound string `json:"sound"` //声音类型 sounda ,b,c,d,e,f,g Volume int `json:"volume"` //音量,1-5 ,对应打印机2-10 + FlowFlag int `json:"flowFlag"` //是否超流量了,1表示超了 }