提交
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"seeyon-filesystem/config"
|
||||
"seeyon-filesystem/dto"
|
||||
"seeyon-filesystem/model"
|
||||
"seeyon-filesystem/utils"
|
||||
)
|
||||
|
||||
// LogService 日志服务
|
||||
@@ -16,6 +17,7 @@ func NewLogService() *LogService {
|
||||
// Record 记录操作日志
|
||||
func (s *LogService) Record(userID uint64, username, action, resource, detail, ip, ua string, status int) {
|
||||
log := &model.OperationLog{
|
||||
ID: utils.GenID(),
|
||||
UserID: userID,
|
||||
Username: username,
|
||||
Action: action,
|
||||
|
||||
Reference in New Issue
Block a user