package models import ( model2 "Medical_ERP/common/model" ) type Product struct { model2.Model Name string `gorm:"size:128" json:"name"` //产品名称 Sort int `gorm:"size:4" json:"-" swaggerignore:"true"` //产品排序 Remark string `gorm:"size:255" json:"-" swaggerignore:"true"` //描述 model2.ControlBy model2.ModelTime } func (e *Product) TableName() string { return "product" } func (e *Product) GetId() interface{} { return e.Id }