This commit is contained in:
suyl
2021-07-20 14:13:39 +08:00
parent 2fd881f172
commit 902a245674
7 changed files with 100 additions and 9 deletions

View File

@@ -1,9 +1,10 @@
package model
const (
PrinterStatusOnlineWithoutPaper = 2 //在线正常缺纸
PrinterStatusOnlineWithoutPaper = 2 //在线缺纸
PrinterStatusOnline = 1 //在线正常
PrinterStatusOffline = -1 //离线
PrinterStatusNoFlow = -2 //当月流量超30m了
PrintMsgAlreadySend = 2 //已经发出打印消息
PrintMsgSuccess = 1 //打印成功
@@ -54,9 +55,9 @@ func (v *PrintMsg) TableIndex() [][]string {
type SimFlowExpend struct {
ModelIDCUL
IccID string `orm:"column(icc_id)" json:"iccID"` //sim卡iccid
Flow int `json:"flow"` //流量数
FlowUnit string `json:"flowUnit"` //流量单位
IccID string `orm:"column(icc_id)" json:"iccID"` //sim卡iccid
Flow float64 `json:"flow"` //流量数
FlowUnit string `json:"flowUnit"` //流量单位
}
func (v *SimFlowExpend) TableIndex() [][]string {
@@ -69,9 +70,9 @@ func (v *SimFlowExpend) TableIndex() [][]string {
type SimFlowIncome struct {
ModelIDCUL
IccID string `orm:"column(icc_id)" json:"iccID"` //sim卡iccid
Flow int `json:"flow"` //流量数
FlowUnit string `json:"flowUnit"` //流量单位
IccID string `orm:"column(icc_id)" json:"iccID"` //sim卡iccid
Flow float64 `json:"flow"` //流量数
FlowUnit string `json:"flowUnit"` //流量单位
}
func (v *SimFlowIncome) TableIndex() [][]string {