This commit is contained in:
邹宗楠
2022-08-24 15:44:19 +08:00
parent ca4ef5171d
commit 901cb2f486
2 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
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)
}
}