调整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
+16
View File
@@ -0,0 +1,16 @@
package dataobject
import (
"time"
)
type SysLog struct {
Id int64 `xorm:"pk autoincr" json:"id"` // 主键
Uid string `xorm:"uid" json:"uid"` // 唯一主键
Content string `xorm:"varchar(255)" json:"content"` // 记录内容
CreateTime time.Time `xorm:"created"` // 创建时间
}
func (c SysLog) TableName() string {
return "sys_log"
}