添加一些model

This commit is contained in:
suyl
2021-06-24 16:50:06 +08:00
parent f2f7928068
commit df481cd2b5
4 changed files with 35 additions and 127 deletions

View File

@@ -1 +1,10 @@
package model
type Apps struct {
ModelIDCULD
Name string `json:"name"` //应用名称
Type int `json:"type"` //应用类型
AppKey string `json:"app_key"` //Key
Status int `json:"status"` //状态
}

17
business/model/print.go Normal file
View 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"},
}
}