调整xorm层级

This commit is contained in:
2023-01-18 16:00:50 +08:00
parent 0f8c1f989b
commit a89c86023e
67 changed files with 500 additions and 460 deletions
+19
View File
@@ -0,0 +1,19 @@
package dataobject
import (
"time"
)
type Student struct {
Id int64 `xorm:"pk autoincr not null bigint 'id'"`
CreateBy string `xorm:"default 'NULL' varchar(255) 'create_by'"`
CreateTime time.Time `xorm:"default 'NULL' datetime 'create_time'"`
UpdateBy string `xorm:"default 'NULL' varchar(255) 'update_by'"`
UpdateTime time.Time `xorm:"default 'NULL' datetime 'update_time'"`
Name string `xorm:"default 'NULL' varchar(255) 'name'"`
Sex string `xorm:"default 'NULL' varchar(255) 'sex'"`
}
func (s *Student) TableName() string {
return "student"
}