aa
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user