package model import "time" type PrintMsg struct { ModelIDCULD PrintNo string `json:"print_no" db:"print_no"` //打印机编号 Content string `orm:"type(text)" json:"content" db:"content"` //订单内容 OrderNo string `json:"order_no" db:"order_no"` //订单序号 Status int `json:"status" db:"status"` //打印状态 Comment string `json:"comment" db:"comment"` //失败原因 MsgID string `orm:"column(msg_id)" json:"msgID" db:"msg_id"` ContentEncryption string `orm:"type(text)" json:"content_encryption" db:"content_encryption"` //订单类容进制文件 } type Printer struct { ModelIDCULD AppID int `orm:"column(app_id)" json:"app_id" db:"app_id"` //应用编号 PrintNo string `json:"print_no" db:"print_no"` //打印机编号 PrintKey string `json:"print_key" db:"print_key"` //打印机识别码 Name string `json:"name" db:"name"` //打印机备注名 Status int `json:"status" db:"status"` //打印机状态 IsOnline int `json:"is_online" db:"is_online"` //1在线,0离线 IccID string `orm:"column(icc_id)" json:"iccid" db:"icc_id"` //sim卡号 Sound string `json:"sound" db:"sound"` //声音类型 sounda ,b,c,d,e,f,g Volume int `json:"volume" db:"volume"` //音量,1-5 ,对应打印机2-10 FlowFlag int `json:"flowFlag" db:"flow_flag"` //是否超流量了,1表示超了 OfflineCount int `json:"offlineCount" db:"offline_count"` //掉线次数 UserId string `json:"user_id" db:"user_id"` //打印机所属用户 } type SystemTemp struct { ID int `json:"id" db:"id"` CreatedAt *time.Time `json:"created_at" db:"created_at"` UpdatedAt *time.Time `json:"updated_at" db:"updated_at"` LastOperator string `json:"last_operator" db:"last_operator"` DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"` TempName string `json:"temp_name" db:"temp_name"` // 模板名称 TempRank string `orm:"type(text)" json:"temp_rank" db:"temp_rank"` // 模板顺序 Temp string `orm:"type(text)" json:"temp" db:"temp"` // 模板 UserId string `json:"user_id" db:"user_id"` // 所属用户 TempType string `json:"temp_type" db:"temp_type"` // 模板类型 TempSize string `json:"temp_size" db:"temp_size"` // 模板尺寸 big/medium/small PrintSn string `json:"print_sn" db:"print_sn"` // 模板所属打印机 IsUse int `json:"is_use" db:"is_use"` // 默认使用 1-使用/2-不使用 }