package models import "time" // AccessLog 访问日志 (用于统计流量) type AccessLog struct { ID uint `json:"id" gorm:"primaryKey"` IP string `json:"ip"` UserAgent string `json:"user_agent"` Path string `json:"path"` Method string `json:"method"` StatusCode int `json:"status_code"` ResponseTime int64 `json:"response_time"` // 毫秒 Region string `json:"region"` // IP归属地 CreatedAt time.Time `json:"created_at"` }