24 lines
560 B
Go
24 lines
560 B
Go
package jxprint
|
|
|
|
import (
|
|
"git.rosy.net.cn/baseapi/utils"
|
|
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
|
"testing"
|
|
)
|
|
|
|
func TestPrintMsg(t *testing.T) {
|
|
status, err := CurPrinterHandler.PrintMsg(jxcontext.AdminCtx, "20220818000001", "1", "test", "11")
|
|
t.Log(utils.Format4Output(status, false))
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|
|
|
|
func TestGetPrintStatus(t *testing.T) {
|
|
status, err := CurPrinterHandler.GetPrinterStatus(jxcontext.AdminCtx, "20220818000001", "1")
|
|
t.Log(utils.Format4Output(status, false))
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|