package models import ( model2 "Medical_ERP/common/model" ) type Unit 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 *Unit) TableName() string { return "unit" } func (e *Unit) GetId() interface{} { return e.Id }