- Store.EnableNetPrinter

This commit is contained in:
gazebo
2019-07-09 09:28:36 +08:00
parent 050da79527
commit 327e602f6f
2 changed files with 9 additions and 1 deletions

View File

@@ -146,6 +146,7 @@ type Store struct {
DeliveryType int8 `orm:"-" json:"deliveryType"` // 仅用于传值
PrinterDisabled int8 `orm:"default(0)" json:"printerDisabled"` // 是否禁用网络打印机
PrinterVendorID int `orm:"column(printer_vendor_id);" json:"printerVendorID"`
PrinterSN string `orm:"size(32);column(printer_sn);index" json:"printerSN"`
PrinterKey string `orm:"size(32)" json:"printerKey"`
@@ -194,6 +195,10 @@ func (*Store) TableUnique() [][]string {
}
}
func (s *Store) IsPrinterDisabled() bool {
return s.PrinterDisabled != 0
}
type StoreSub struct {
ModelIDCULD