add printer get printers

This commit is contained in:
suyl
2021-07-08 14:53:20 +08:00
parent ace0d7e5f3
commit 9be410cec6
7 changed files with 265 additions and 0 deletions

View File

@@ -106,3 +106,11 @@ func captchaVerify(c *gin.Context, code string) bool {
return false
}
}
func buildErrJson(c *gin.Context, err error) {
c.JSON(http.StatusOK, &CallBack{
Code: model.ErrCodeNormal,
Desc: err.Error(),
})
globals.SugarLogger.Debugf("End API :%s error:%v:", c.Request.URL, err)
}