This commit is contained in:
2026-07-18 10:52:32 +08:00
parent 2dcafae465
commit b5ef58f434
61 changed files with 1274 additions and 2142 deletions

View File

@@ -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,