diff --git a/model/model.go b/model/model.go index 6c60062..fb36de5 100644 --- a/model/model.go +++ b/model/model.go @@ -138,10 +138,10 @@ type Printer struct { Name string `json:"name"` //打印机备注名 Status int `json:"status"` //打印机状态 IsOnline int `json:"is_online" db:"is_online"` //1在线,0离线 - IccID string `json:"iccid" db:"icc_id"` //sim卡号 + IccID string `json:"icc_id" db:"icc_id"` //sim卡号 Sound string `json:"sound"` //声音类型 sounda ,b,c,d,e,f,g Volume int `json:"volume"` //音量,1-5 ,对应打印机2-10 - FlowFlag int `json:"flowFlag" db:"flow_flag"` //是否超流量了,1表示超了 + FlowFlag int `json:"flow_flag" db:"flow_flag"` //是否超流量了,1表示超了 } type PrintMsg struct { @@ -164,9 +164,9 @@ type SimFlowExpend struct { 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"` - IccID string `json:"iccid" db:"icc_id"` //sim卡iccid - Flow float64 `json:"flow"` //流量数 - FlowUnit string `json:"flowUnit" db:"flow_unit"` //流量单位 + IccID string `json:"icc_id" db:"icc_id"` //sim卡iccid + Flow float64 `json:"flow"` //流量数 + FlowUnit string `json:"flow_unit" db:"flow_unit"` //流量单位 } //流量划入 @@ -175,8 +175,8 @@ type SimFlowIncome struct { 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"` - IccID string `json:"iccid" db:"icc_id"` //sim卡iccid - Flow float64 `json:"flow"` //流量数 - FlowUnit string `json:"flowUnit" db:"flow_unit"` //流量单位 - IncomeType int `json:"incomeType" db:"income_type"` //1 表示系统每月自动划转,2 表示商户自己冲的 + IccID string `json:"icc_id" db:"icc_id"` //sim卡iccid + Flow float64 `json:"flow"` //流量数 + FlowUnit string `json:"flow_unit" db:"flow_unit"` //流量单位 + IncomeType int `json:"income_type" db:"income_type"` //1 表示系统每月自动划转,2 表示商户自己冲的 }