暂存
This commit is contained in:
5
business/model/dao/print_activation.go
Normal file
5
business/model/dao/print_activation.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package dao
|
||||
|
||||
func CheckPrintIsHave(printNo string) {
|
||||
GetRow()
|
||||
}
|
||||
10
business/model/print_activation.go
Normal file
10
business/model/print_activation.go
Normal 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"` // 打印机编号
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user