This commit is contained in:
suyl
2021-07-19 18:21:38 +08:00
parent b002522cf0
commit c4068f4dfc

View File

@@ -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"},
}
}