From c4068f4dfcd9a0c1fb46037329153cb3f792551f Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 19 Jul 2021 18:21:38 +0800 Subject: [PATCH] aa --- business/model/print.go | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/business/model/print.go b/business/model/print.go index 1ce0548f0..a5305d9fc 100644 --- a/business/model/print.go +++ b/business/model/print.go @@ -22,7 +22,7 @@ type Printer struct { Name string `json:"name"` //打印机备注名 Status int `json:"status"` //打印机状态 IsOnline int `json:"is_online"` //1在线,0离线 - SIM string `orm:"column(sim)" json:"sim"` //sim卡号 + IccID string `orm:"column(icc_ID)" json:"IccID"` //sim卡号 Sound string `json:"sound"` //声音类型 sounda ,b,c,d,e,f,g Volume int `json:"volume"` //音量,1-5 ,对应打印机2-10 } @@ -49,3 +49,33 @@ func (v *PrintMsg) TableIndex() [][]string { []string{"PrintNo"}, } } + +//流量支出 +type SimFlowExpend struct { + ModelIDCUL + + IccID string `orm:"column(icc_id)" json:"iccID"` //sim卡iccid + Flow int `json:"flow"` //流量数 + FlowUnit string `json:"flowUnit"` //流量单位 +} + +func (v *SimFlowExpend) TableIndex() [][]string { + return [][]string{ + []string{"IccID"}, + } +} + +//流量划入 +type SimFlowIncome struct { + ModelIDCUL + + IccID string `orm:"column(icc_id)" json:"iccID"` //sim卡iccid + Flow int `json:"flow"` //流量数 + FlowUnit string `json:"flowUnit"` //流量单位 +} + +func (v *SimFlowIncome) TableIndex() [][]string { + return [][]string{ + []string{"IccID"}, + } +}