添加打印机所属用户
This commit is contained in:
@@ -66,6 +66,7 @@ func AddPrinter(appID int, printers []*model.Printer) (err error) {
|
|||||||
IccID: v.IccID,
|
IccID: v.IccID,
|
||||||
Status: model.PrinterStatusOffline,
|
Status: model.PrinterStatusOffline,
|
||||||
Sound: v.Sound,
|
Sound: v.Sound,
|
||||||
|
UserId: "system",
|
||||||
}
|
}
|
||||||
if v.Volume == 0 {
|
if v.Volume == 0 {
|
||||||
printer.Volume = 4
|
printer.Volume = 4
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ type Printer struct {
|
|||||||
Volume int `json:"volume"` //音量,1-5 ,对应打印机2-10
|
Volume int `json:"volume"` //音量,1-5 ,对应打印机2-10
|
||||||
FlowFlag int `json:"flowFlag"` //是否超流量了,1表示超了
|
FlowFlag int `json:"flowFlag"` //是否超流量了,1表示超了
|
||||||
OfflineCount int `json:"offlineCount"` //掉线次数
|
OfflineCount int `json:"offlineCount"` //掉线次数
|
||||||
|
UserId string `json:"user_id"` //用户id
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *Printer) TableIndex() [][]string {
|
func (v *Printer) TableIndex() [][]string {
|
||||||
|
|||||||
Reference in New Issue
Block a user