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

@@ -5,7 +5,7 @@ import "time"
// OperationLog 操作日志
// 记录用户的关键操作行为
type OperationLog struct {
ID uint64 `json:"id" gorm:"primaryKey;autoIncrement"`
ID uint64 `json:"id" gorm:"primaryKey"`
UserID uint64 `json:"user_id" gorm:"index;default:0"` // 操作人
Username string `json:"username" gorm:"size:64"` // 操作人用户名
Action string `json:"action" gorm:"size:32;index;not null"` // 操作类型: login/upload/download/delete/share...