2024-07-19 19:04:11 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type OperationLog struct {
|
|
|
|
BaseModel
|
2024-08-14 10:43:32 +08:00
|
|
|
Source string `json:"source"`
|
|
|
|
IP string `json:"ip"`
|
|
|
|
Path string `json:"path"`
|
|
|
|
Method string `json:"method"`
|
|
|
|
UserAgent string `json:"userAgent"`
|
2024-07-19 19:04:11 +08:00
|
|
|
|
2024-08-14 10:43:32 +08:00
|
|
|
Latency time.Duration `json:"latency"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Message string `json:"message"`
|
2024-07-19 19:04:11 +08:00
|
|
|
|
2024-08-14 10:43:32 +08:00
|
|
|
DetailZH string `json:"detailZH"`
|
|
|
|
DetailEN string `json:"detailEN"`
|
2024-07-19 19:04:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type LoginLog struct {
|
|
|
|
BaseModel
|
2024-08-14 10:43:32 +08:00
|
|
|
IP string `json:"ip"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
Agent string `json:"agent"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Message string `json:"message"`
|
2024-07-19 19:04:11 +08:00
|
|
|
}
|