+ cms.printerStatusName
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
|||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/mobile"
|
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/mobile"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/msg"
|
"git.rosy.net.cn/jx-callback/business/jxutils/msg"
|
||||||
|
"git.rosy.net.cn/jx-callback/business/partner"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||||
@@ -76,6 +77,7 @@ func InitServiceInfo(version string, buildTime time.Time, gitCommit string) {
|
|||||||
"storeMsgSendStatusName": model.StoreMsgSendStatusName,
|
"storeMsgSendStatusName": model.StoreMsgSendStatusName,
|
||||||
"shopChineseNames": model.ShopChineseNames,
|
"shopChineseNames": model.ShopChineseNames,
|
||||||
"printerVendorInfo": model.PrinterVendorInfo,
|
"printerVendorInfo": model.PrinterVendorInfo,
|
||||||
|
"printerStatusName": partner.PrinterStatusName,
|
||||||
"purchaseVendorInfo": model.PurchaseVendorInfo,
|
"purchaseVendorInfo": model.PurchaseVendorInfo,
|
||||||
"afsReasonTypeName": model.AfsReasonTypeName,
|
"afsReasonTypeName": model.AfsReasonTypeName,
|
||||||
"afsAppealTypeName": model.AfsAppealTypeName,
|
"afsAppealTypeName": model.AfsAppealTypeName,
|
||||||
|
|||||||
@@ -26,36 +26,12 @@ const (
|
|||||||
CancelWaybillReasonOther = 10
|
CancelWaybillReasonOther = 10
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
PrinterStatusUnknown = 0
|
|
||||||
PrinterStatusOffline = 1
|
|
||||||
PrinterStatusOnlineOK = 2
|
|
||||||
PrinterStatusOnlineAbnormal = 3
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AfsApproveTypeRefund = 1 // 退款
|
AfsApproveTypeRefund = 1 // 退款
|
||||||
AfsApproveTypeReturnGoods = 2 // 退货
|
AfsApproveTypeReturnGoods = 2 // 退货
|
||||||
AfsApproveTypeRefused = 3 // 驳回
|
AfsApproveTypeRefused = 3 // 驳回
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
PrintResultSuccess = 0
|
|
||||||
PrintResultNoPrinter = 1
|
|
||||||
)
|
|
||||||
|
|
||||||
type PrinterStatus struct {
|
|
||||||
PrintResult int `json:"printResult"` // 0:成功,1:没有配置网络打印机
|
|
||||||
|
|
||||||
// PrinterStatusUnknown = 0
|
|
||||||
// PrinterStatusOffline = 1
|
|
||||||
// PrinterStatusOnlineOK = 2
|
|
||||||
// PrinterStatusOnlineAbnormal = 3
|
|
||||||
PrinterStatus int `json:"printerStatus"`
|
|
||||||
Printed int `json:"printed"` // 已经打印的单数
|
|
||||||
Waiting int `json:"waiting"` // 等待打印的单数,超过1一般不太正常
|
|
||||||
}
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
TimerTypeNoOverride = 0 // GetStatusActionConfig 返回表示不修改缺省配置
|
TimerTypeNoOverride = 0 // GetStatusActionConfig 返回表示不修改缺省配置
|
||||||
TimerTypeByPass = 1
|
TimerTypeByPass = 1
|
||||||
|
|||||||
@@ -7,6 +7,34 @@ import (
|
|||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
PrinterStatusUnknown = 0
|
||||||
|
PrinterStatusOffline = 1
|
||||||
|
PrinterStatusOnlineOK = 2
|
||||||
|
PrinterStatusOnlineAbnormal = 3
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
PrintResultSuccess = 0 // 成功
|
||||||
|
PrintResultNoPrinter = 1 // 没有配置网络打印机
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
PrinterStatusName = map[int]string{
|
||||||
|
PrinterStatusUnknown: "未知",
|
||||||
|
PrinterStatusOffline: "离线",
|
||||||
|
PrinterStatusOnlineOK: "正常",
|
||||||
|
PrinterStatusOnlineAbnormal: "异常",
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
type PrinterStatus struct {
|
||||||
|
PrintResult int `json:"printResult"`
|
||||||
|
PrinterStatus int `json:"printerStatus"`
|
||||||
|
Printed int `json:"printed"` // 已经打印的单数
|
||||||
|
Waiting int `json:"waiting"` // 等待打印的单数,超过1一般不太正常
|
||||||
|
}
|
||||||
|
|
||||||
type BindPrinterResult struct {
|
type BindPrinterResult struct {
|
||||||
PrinterSN string `json:"printerSN"`
|
PrinterSN string `json:"printerSN"`
|
||||||
PrinterKey string `json:"printerKey"`
|
PrinterKey string `json:"printerKey"`
|
||||||
|
|||||||
Reference in New Issue
Block a user