改bug
This commit is contained in:
@@ -184,7 +184,7 @@ type UserActionLog struct {
|
|||||||
Time time.Time `gorm:"primaryKey" json:"time"`
|
Time time.Time `gorm:"primaryKey" json:"time"`
|
||||||
|
|
||||||
// --- Who (谁) ---
|
// --- Who (谁) ---
|
||||||
UserID uint `gorm:"primaryKey" json:"user_id,omitempty"`
|
UserID uint `gorm:"not null" json:"user_id,omitempty"`
|
||||||
Username string `json:"username,omitempty"` // 操作发生时用户名的快照
|
Username string `json:"username,omitempty"` // 操作发生时用户名的快照
|
||||||
|
|
||||||
// --- Where (何地) ---
|
// --- Where (何地) ---
|
||||||
|
|||||||
Reference in New Issue
Block a user