添加一些model
This commit is contained in:
17
business/model/print.go
Normal file
17
business/model/print.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package model
|
||||
|
||||
type Printer struct {
|
||||
ModelIDCULD
|
||||
|
||||
AppID int `orm:"column(app_id)" json:"app_id"` //应用编号
|
||||
PrintNo string `json:"print_no"` //打印机编号
|
||||
PrintKey string `json:"print_key"` //打印机识别码
|
||||
Name string `json:"name"` //打印机备注名
|
||||
Status int `json:"status"` //打印机状态
|
||||
}
|
||||
|
||||
func (v *Printer) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"PrintNo"},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user