提交
This commit is contained in:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user