| 123456789101112131415161718192021222324 | package modelimport (	"ulink-admin/pkg/base")type Test struct {	base.BaseModel `xorm:"extends"`	Label          string `excel:"name=名称   " xorm:"varchar(30)      comment('名称')" json:"label"  binding:"required"`                          //名称	Image          string `excel:"name=图片   " xorm:"varchar(200)      comment('图片')" json:"image"  binding:"required"`                         //图片	IsDel          int    `excel:"name=删除   ,format=1=是,2=否" xorm:"tinyint(1)      comment('删除')" json:"isDel"  binding:"required,oneof=1 2 "` //删除(1是 2否) `                                      //更新时间}func (this Test) TableName() string {	return "test"}func (this *Test) Key() int64 {	return this.Id}func (this *Test) Model() interface{} {	return this}
 |