This commit is contained in:
zhangwenjian committed 2020-09-29 08:41:20 +08:00
1 parent 677cdb7821
commit bc648c3f2f
60 files changed
+2319 -550

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
package models
import (
"gorm.io/gorm"
"go-admin/common/models"
)
type Student struct {
gorm.Model
models.ControlBy
Name string `json:"name" gorm:"type:varchar(255);comment:姓名"` //
}
func (Student) TableName() string {
return "student"
}
func (e *Student) Generate() models.ActiveRecord {
o := *e
return &o
}
func (e *Student) GetId() interface{} {
return e.ID
}