1
This commit is contained in:
@@ -17,18 +17,18 @@ const (
|
|||||||
type Printer struct {
|
type Printer struct {
|
||||||
ModelIDCULD
|
ModelIDCULD
|
||||||
|
|
||||||
AppID int `orm:"column(app_id)" json:"app_id"` //应用编号
|
AppID int `orm:"column(app_id)" json:"app_id" db:"app_id"` //应用编号
|
||||||
PrintNo string `json:"print_no"` //打印机编号
|
PrintNo string `json:"print_no" db:"print_no"` //打印机编号
|
||||||
PrintKey string `json:"print_key"` //打印机识别码
|
PrintKey string `json:"print_key" db:"print_key"` //打印机识别码
|
||||||
Name string `json:"name"` //打印机备注名
|
Name string `json:"name" db:"name"` //打印机备注名
|
||||||
Status int `json:"status"` //打印机状态
|
Status int `json:"status" db:"status"` //打印机状态
|
||||||
IsOnline int `json:"is_online"` //1在线,0离线
|
IsOnline int `json:"is_online" db:"is_online"` //1在线,0离线
|
||||||
IccID string `orm:"column(icc_id)" json:"IccID"` //sim卡号
|
IccID string `orm:"column(icc_id)" json:"IccID" db:"icc_id"` //sim卡号
|
||||||
Sound string `json:"sound"` //声音类型 sounda ,b,c,d,e,f,g
|
Sound string `json:"sound" db:"sound"` //声音类型 sounda ,b,c,d,e,f,g
|
||||||
Volume int `json:"volume"` //音量,1-5 ,对应打印机2-10
|
Volume int `json:"volume" db:"volume"` //音量,1-5 ,对应打印机2-10
|
||||||
FlowFlag int `json:"flowFlag"` //是否超流量了,1表示超了
|
FlowFlag int `json:"flowFlag" db:"flow_flag"` //是否超流量了,1表示超了
|
||||||
OfflineCount int `json:"offlineCount"` //掉线次数
|
OfflineCount int `json:"offlineCount" db:"offline_count"` //掉线次数
|
||||||
UserId string `json:"user_id"` //用户id
|
UserId string `json:"user_id" db:"user_id"` //用户id
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *Printer) TableIndex() [][]string {
|
func (v *Printer) TableIndex() [][]string {
|
||||||
@@ -40,13 +40,13 @@ func (v *Printer) TableIndex() [][]string {
|
|||||||
type PrintMsg struct {
|
type PrintMsg struct {
|
||||||
ModelIDCULD
|
ModelIDCULD
|
||||||
|
|
||||||
MsgID string `orm:"column(msg_id)" json:"msg_id"` //消息ID
|
MsgID string `orm:"column(msg_id)" json:"msg_id" db:"msg_id"` //消息ID
|
||||||
PrintNo string `json:"print_no"` //打印机编号
|
PrintNo string `json:"print_no" db:"print_no"` //打印机编号
|
||||||
OrderNo string `json:"order_no"` //订单序号
|
OrderNo string `json:"order_no" db:"order_no"` //订单序号
|
||||||
Content string `orm:"type(text)" json:"content"` //订单内容
|
Content string `orm:"type(text)" json:"content" db:"content"` //订单内容
|
||||||
Status int `json:"status"` //打印状态
|
Status int `json:"status" db:"status"` //打印状态
|
||||||
Comment string `json:"comment"` //失败原因
|
Comment string `json:"comment" db:"comment"` //失败原因
|
||||||
ContentEncryption string `orm:"type(text)" json:"content_encryption"` //订单类容进制文件
|
ContentEncryption string `orm:"type(text)" json:"content_encryption" db:"content_encryption"` //订单类容进制文件
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *PrintMsg) TableIndex() [][]string {
|
func (v *PrintMsg) TableIndex() [][]string {
|
||||||
@@ -59,9 +59,9 @@ func (v *PrintMsg) TableIndex() [][]string {
|
|||||||
type SimFlowExpend struct {
|
type SimFlowExpend struct {
|
||||||
ModelIDCUL
|
ModelIDCUL
|
||||||
|
|
||||||
IccID string `orm:"column(icc_id)" json:"iccID"` //sim卡iccid
|
IccID string `orm:"column(icc_id)" json:"iccID" db:"icc_id"` //sim卡iccid
|
||||||
Flow float64 `json:"flow"` //流量数
|
Flow float64 `json:"flow" db:"flow"` //流量数
|
||||||
FlowUnit string `json:"flowUnit"` //流量单位
|
FlowUnit string `json:"flowUnit" db:"flow_unit"` //流量单位
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *SimFlowExpend) TableIndex() [][]string {
|
func (v *SimFlowExpend) TableIndex() [][]string {
|
||||||
@@ -74,11 +74,11 @@ func (v *SimFlowExpend) TableIndex() [][]string {
|
|||||||
type SimFlowIncome struct {
|
type SimFlowIncome struct {
|
||||||
ModelIDCUL
|
ModelIDCUL
|
||||||
|
|
||||||
IccID string `orm:"column(icc_id)" json:"iccID"` //sim卡iccid
|
IccID string `orm:"column(icc_id)" json:"iccID" db:"icc_id"` //sim卡iccid
|
||||||
Flow float64 `json:"flow"` //流量数
|
Flow float64 `json:"flow" db:"flow"` //流量数
|
||||||
FlowUnit string `json:"flowUnit"` //流量单位
|
FlowUnit string `json:"flowUnit" db:"flow_unit"` //流量单位
|
||||||
IncomeType int `json:"incomeType"` //1 表示系统每月自动划转,2 表示商户自己冲的
|
IncomeType int `json:"incomeType" db:"income_type"` //1 表示系统每月自动划转,2 表示商户自己冲的
|
||||||
OrderID string `orm:"column(order_id)" json:"order_id"` //订单号
|
OrderID string `orm:"column(order_id)" json:"order_id" db:"order_id"` //订单号
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *SimFlowIncome) TableIndex() [][]string {
|
func (v *SimFlowIncome) TableIndex() [][]string {
|
||||||
|
|||||||
Reference in New Issue
Block a user