This commit is contained in:
邹宗楠
2022-08-23 16:52:04 +08:00
parent 9651e0344d
commit 8303af4e32
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
package dao
func CheckPrintIsHave(printNo string) {
GetRow()
}

View File

@@ -0,0 +1,10 @@
package model
import "time"
// PrintActivation 打印机激活记录
type PrintActivation struct {
ID int `orm:"column(id)" json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
PrintNo string `orm:"type(varchar);size(32);index" json:"print_no" db:"print_no"` // 打印机编号
}

View File

@@ -66,6 +66,7 @@ func Init() {
orm.RegisterModel(&model.OrderPay{})
orm.RegisterModel(&model.PrintBillRecord{})
orm.RegisterModel(&model.PrintBindStore{})
orm.RegisterModel(&model.PrintActivation{})
}
// create table
orm.RunSyncdb("default", false, true)