This commit is contained in:
suyl
2021-07-09 11:12:16 +08:00
parent 754749ff4d
commit a5d4a1c5d1

View File

@@ -11,6 +11,16 @@ import (
"time"
)
const (
sounda = "sounda" //提示音a
soundb = "soundb" //提示音b
soundc = "soundc" //提示音c
soundd = "soundd" //提示音d
sounde = "sounde" //报警音e
soundf = "soundf" //报警音f
soundg = "soundg" //报警音g
)
type PrintInfo struct {
PrintNo string
AppID int
@@ -33,6 +43,8 @@ func AddPrinter(appID int, printers []*model.Printer) (err error) {
Name: v.Name,
SIM: v.SIM,
Status: model.PrinterStatusOffline,
Sound: sounda, //默认一个
Volume: 4, //默认音量
}
dao.WrapAddIDCULDEntity(printer, "")
if err = dao.CreateEntity(db, printer); err != nil {