添加打印机所属用户

This commit is contained in:
邹宗楠
2022-07-28 16:56:55 +08:00
parent 847bd705bb
commit 32e4c45ef1
2 changed files with 2 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ func AddPrinter(appID int, printers []*model.Printer) (err error) {
IccID: v.IccID,
Status: model.PrinterStatusOffline,
Sound: v.Sound,
UserId: "system",
}
if v.Volume == 0 {
printer.Volume = 4

View File

@@ -28,6 +28,7 @@ type Printer struct {
Volume int `json:"volume"` //音量1-5 对应打印机2-10
FlowFlag int `json:"flowFlag"` //是否超流量了1表示超了
OfflineCount int `json:"offlineCount"` //掉线次数
UserId string `json:"user_id"` //用户id
}
func (v *Printer) TableIndex() [][]string {