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