2022-08-16 23:30:23 +08:00
|
|
|
package dto
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2022-11-15 17:20:57 +08:00
|
|
|
type OperationLog struct {
|
2022-08-16 23:30:23 +08:00
|
|
|
ID uint `json:"id"`
|
|
|
|
Group string `json:"group"`
|
|
|
|
Source string `json:"source"`
|
|
|
|
Action string `json:"action"`
|
|
|
|
|
|
|
|
IP string `json:"ip"`
|
|
|
|
Path string `json:"path"`
|
|
|
|
Method string `json:"method"`
|
|
|
|
UserAgent string `json:"userAgent"`
|
|
|
|
Body string `json:"body"`
|
|
|
|
Resp string `json:"resp"`
|
|
|
|
|
|
|
|
Status int `json:"status"`
|
|
|
|
Latency time.Duration `json:"latency"`
|
|
|
|
ErrorMessage string `json:"errorMessage"`
|
|
|
|
|
|
|
|
Detail string `json:"detail"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
}
|
2022-11-15 17:20:57 +08:00
|
|
|
|
|
|
|
type LoginLog struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
IP string `json:"ip"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
Agent string `json:"agent"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
}
|