Versions in this module Expand all Collapse all v1 v1.0.1 Apr 17, 2025 Changes in this version + var ErrAlreadyAdd = errors.New("已经添加过该打印机了") + type DaQuError struct + Code int + Message string + func (r *DaQuError) Error() string + type DaQuPrinter struct + func NewDaQu() *DaQuPrinter + func (d *DaQuPrinter) AddPrinter(config *model.BeePrinter) error + func (d *DaQuPrinter) DelPrinter(config *model.BeePrinter, codes []string) error + func (d *DaQuPrinter) Print(config *model.BeePrinter, voice, content string) error + type DaQuRes struct + Code int + Data json.RawMessage + Message string + type FeiEPrinter struct + func NewFeiE() *FeiEPrinter + func (d *FeiEPrinter) AddPrinter(config *model.BeePrinter) error + func (d *FeiEPrinter) DelPrinter(config *model.BeePrinter, codes []string) error + func (d *FeiEPrinter) Print(config *model.BeePrinter, voice, content string) error + type FeiERes struct + Data json.RawMessage + Message string + Ret int + ServerExecutedTime int + type Printer interface + AddPrinter func(config *model.BeePrinter) error + DelPrinter func(config *model.BeePrinter, codes []string) error + Print func(config *model.BeePrinter, voice, content string) error + func GetPrinter(config *model.BeePrinter) Printer + func GetPrinterByBrand(brand enum.PrinterBrand) Printer