update log service

This commit is contained in:
2022-03-13 16:02:24 +08:00
parent a85c8b33b1
commit 3f5d992f13
8 changed files with 131 additions and 7 deletions
+16
View File
@@ -0,0 +1,16 @@
package entity
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"
}