数据结构优化
This commit is contained in:
@@ -12,6 +12,7 @@ type OperationLog struct {
|
||||
UserID uint `json:"userId" gorm:"column:user_id;index"`
|
||||
Username string `json:"username" gorm:"column:username"`
|
||||
IP string `json:"ip" gorm:"column:ip"`
|
||||
Region string `json:"region" gorm:"column:region"` // IP归属地
|
||||
Path string `json:"path" gorm:"column:path;index"`
|
||||
Method string `json:"method" gorm:"column:method"`
|
||||
Params string `json:"params" gorm:"column:params;type:text"`
|
||||
@@ -43,6 +44,7 @@ type OperationLogResponse struct {
|
||||
UserID uint `json:"userId"`
|
||||
Username string `json:"username"`
|
||||
IP string `json:"ip"`
|
||||
Region string `json:"region"` // IP归属地
|
||||
Path string `json:"path"`
|
||||
Method string `json:"method"`
|
||||
Params string `json:"params"`
|
||||
|
||||
Reference in New Issue
Block a user