mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-26 03:59:18 +08:00
24 lines
694 B
Go
24 lines
694 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type OperationLog struct {
|
|
BaseModel
|
|
Group string `gorm:"type:varchar(64)" json:"group"`
|
|
Source string `gorm:"type:varchar(64)" json:"source"`
|
|
Action string `gorm:"type:varchar(64)" json:"action"`
|
|
|
|
IP string `gorm:"type:varchar(64)" json:"ip"`
|
|
Path string `gorm:"type:varchar(64)" json:"path"`
|
|
Method string `gorm:"type:varchar(64)" json:"method"`
|
|
UserAgent string `gorm:"type:varchar(256)" json:"userAgent"`
|
|
Body string `gorm:"type:longText" json:"body"`
|
|
Resp string `gorm:"type:longText" json:"resp"`
|
|
|
|
Latency time.Duration `gorm:"type:varchar(64)" json:"latency"`
|
|
|
|
Detail string `gorm:"type:longText" json:"detail"`
|
|
}
|