package dao const ( CodeStatusBind = 3 //为绑定 BacCode = "Lone" ) type CodeCreate struct { Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"` ProductId int `gorm:"column:product_id;type:int(11);comment:产品ID" json:"product_id"` Code string `gorm:"column:code;type:varchar(255);comment:姓名" json:"code"` Status uint8 `gorm:"column:status;type:tinyint(1);default:2;comment:状态,1为打印,2为未打印,3为已绑定" json:"status"` AdminId int `gorm:"column:admin_id;type:int(11)" json:"admin_id"` AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"` } type CodeInfo struct { Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"` ProductId int `gorm:"column:product_id;type:int(11);comment:产品ID" json:"product_id"` Code string `gorm:"column:code;type:varchar(255);comment:姓名" json:"code"` Status uint8 `gorm:"column:status;type:tinyint(1);default:2;comment:状态,1为打印,2为未打印,3为已绑定" json:"status"` }