Update operlog.go

This commit is contained in:
wenjianzhang
2020-03-31 21:46:08 +08:00
committed by GitHub
parent f003d02010
commit f8013301ad
+1
View File
@@ -107,6 +107,7 @@ func (e *SysOperLog) GetPage(pageSize int, pageIndex int) ([]SysOperLog, int32,
func (e *SysOperLog) Create() (SysOperLog, error) {
var doc SysOperLog
e.CreateTime = utils.GetCurrntTime()
e.UpdateTime = utils.GetCurrntTime()
e.CreateBy = "0"
e.UpdateBy = "0"
result := orm.Eloquent.Table("sys_operlog").Create(&e)