aa
This commit is contained in:
@@ -8,13 +8,17 @@ const (
|
||||
SessionKey = "jxCode"
|
||||
RegisterKey = "jxRegister"
|
||||
|
||||
PrinterStatusNormal = 0 //打印机状态正常
|
||||
PrinterStatusWithouPaper = 1 //缺纸
|
||||
PrinterStatusNormal = 1 //打印机状态正常
|
||||
PrinterStatusWithouPaper = 2 //缺纸
|
||||
PrinterStatusOverFlow = -2 //缺流量
|
||||
|
||||
PrinterOnline = 1 //在线
|
||||
PrinterOffline = 0 //离线
|
||||
|
||||
StatusAll = -9
|
||||
|
||||
FlowIncomeTypeJX = 1 //表示每月自动划转
|
||||
FlowIncomeTypeUser = 2 //表示是用户自己冲的
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -134,7 +138,7 @@ type Printer struct {
|
||||
Name string `json:"name"` //打印机备注名
|
||||
Status int `json:"status"` //打印机状态
|
||||
IsOnline int `json:"is_online" db:"is_online"` //1在线,0离线
|
||||
SIM string `json:"sim" db:"sim"` //sim卡号
|
||||
IccID string `json:"iccid" db:"icc_id"` //sim卡号
|
||||
Sound string `json:"sound"` //声音类型 sounda ,b,c,d,e,f,g
|
||||
Volume int `json:"volume"` //音量,1-5 ,对应打印机2-10
|
||||
}
|
||||
@@ -152,3 +156,26 @@ type PrintMsg struct {
|
||||
Status int `json:"status"` //打印状态
|
||||
Comment string `json:"comment"` //失败原因
|
||||
}
|
||||
|
||||
//流量支出
|
||||
type SimFlowExpend struct {
|
||||
ID int `json:"id" db:"id"`
|
||||
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"` //流量单位
|
||||
}
|
||||
|
||||
//流量划入
|
||||
type SimFlowIncome struct {
|
||||
ID int `json:"id" db:"id"`
|
||||
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"` //流量单位
|
||||
IncomeType int `json:"incomeType"` //1 表示系统每月自动划转,2 表示商户自己冲的
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user