常量统一

This commit is contained in:
suyl
2021-07-01 11:47:09 +08:00
parent 89e48b0979
commit aa0eee9812
2 changed files with 18 additions and 8 deletions

View File

@@ -1,7 +1,9 @@
package model
const (
PrinterStatusNormal = 0 //正常
PrinterStatusOnlineWithoutPaper = 2 //在线正常缺纸
PrinterStatusOnline = 1 //在线正常
PrinterStatusOffline = -1 //离线
)
type Printer struct {
@@ -23,11 +25,12 @@ func (v *Printer) TableIndex() [][]string {
type PrintMsg struct {
ModelIDCULD
PrintNo string `json:"print_no"` //打印机编号
OrderNo int `json:"order_no"` //订单序
Content string `orm:"type(text)" json:"content"` //订单内容
Status int `json:"status"` //打印状态
Comment string `json:"comment"` //失败原因
MsgID string `orm:"column(msg_id)" json:"msg_id"` //消息ID
PrintNo string `json:"print_no"` //打印机编
OrderNo int `json:"order_no"` //订单序号
Content string `orm:"type(text)" json:"content"` //订单内容
Status int `json:"status"` //打印状态
Comment string `json:"comment"` //失败原因
}
func (v *PrintMsg) TableIndex() [][]string {