You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
475 B
17 lines
475 B
1 month ago
|
package model
|
||
|
|
||
|
type ActionLog struct {
|
||
|
BaseModel
|
||
|
UserID uint `json:"user_id"`
|
||
|
Username string `json:"username"`
|
||
|
Action string `json:"action"`
|
||
|
IP string `json:"ip"`
|
||
|
UserAgent string `json:"user_agent"`
|
||
|
Path string `json:"path"`
|
||
|
Method string `json:"method"`
|
||
|
Request string `json:"request" gorm:"type:text"`
|
||
|
Response string `json:"response" gorm:"type:text"`
|
||
|
Status int `json:"status"`
|
||
|
Latency int64 `json:"latency"` // 毫秒
|
||
|
}
|