常量统一
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user