add printer get printers
This commit is contained in:
@@ -7,6 +7,14 @@ import (
|
||||
const (
|
||||
SessionKey = "jxCode"
|
||||
RegisterKey = "jxRegister"
|
||||
|
||||
PrinterStatusNormal = 0 //打印机状态正常
|
||||
PrinterStatusWithouPaper = 1 //缺纸
|
||||
|
||||
PrinterOnline = 1 //在线
|
||||
PrinterOffline = 0 //离线
|
||||
|
||||
StatusAll = -9
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -39,6 +47,17 @@ type TokenInfo struct {
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
type PrintInfo struct {
|
||||
PrintNo string `json:"print_no" form:"print_no" binding:"required"` //打印机编号
|
||||
Name string `json:"name" form:"name"` //打印机备注
|
||||
SIM string `json:"sim" form:"sim"` //流量卡号码
|
||||
}
|
||||
|
||||
type PagedInfo struct {
|
||||
TotalCount int `json:"totalCount"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
||||
type ModelIDCULD struct {
|
||||
ID int `json:"id" db:"id"`
|
||||
CreatedAt *time.Time `json:"created_at" db:"created_at"`
|
||||
@@ -102,3 +121,18 @@ type Menu struct {
|
||||
Color string `json:"color"` //颜色
|
||||
Content string `json:"content"` //菜单内容
|
||||
}
|
||||
|
||||
type Printer 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"`
|
||||
DeletedAt *time.Time `json:"deleted_at" db:"deleted_at"`
|
||||
AppID int `json:"app_id" db:"app_id"` //应用编号
|
||||
PrintNo string `json:"print_no" db:"print_no"` //打印机编号
|
||||
PrintKey string `json:"print_key" db:"print_key"` //打印机识别码
|
||||
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卡号
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user