package dto // DashboardStats 仪表板统计响应 // Logan.Li type DashboardStats struct { TotalLicenses int64 `json:"total_licenses"` ActiveLicenses int64 `json:"active_licenses"` NewThisMonth int64 `json:"new_this_month"` ExpiringSoon int64 `json:"expiring_soon"` TotalCustomers int64 `json:"total_customers"` TotalProducts int64 `json:"total_products"` OnlineDevices int64 `json:"online_devices"` MonthlyRevenue float64 `json:"monthly_revenue"` } // ExpiringLicenseItem 即将到期 License // Logan.Li type ExpiringLicenseItem struct { ID uint `json:"id"` LicenseKey string `json:"license_key"` CustomerName string `json:"customer_name"` ProductName string `json:"product_name"` EndDate string `json:"end_date"` DaysLeft int `json:"days_left"` } // RecentActivityItem 最近活动 // Logan.Li type RecentActivityItem struct { ID uint `json:"id"` Username string `json:"username"` Action string `json:"action"` TargetType string `json:"target_type"` TargetName string `json:"target_name"` Detail string `json:"detail"` CreatedAt string `json:"created_at"` } // LicenseGrowthPoint License 增长趋势点 // Logan.Li type LicenseGrowthPoint struct { Date string `json:"date"` Count int64 `json:"count"` } // RevenuePoint 收入趋势点 // Logan.Li type RevenuePoint struct { Period string `json:"period"` Amount float64 `json:"amount"` } // ProductDistribution 产品分布 // Logan.Li type ProductDistribution struct { ProductName string `json:"product_name"` Count int64 `json:"count"` } // SettingUpdate 更新系统设置请求 // Logan.Li type SettingUpdate struct { SystemName *string `json:"system_name"` DefaultDuration *int `json:"default_duration"` DefaultMaxActivations *int `json:"default_max_activations"` ExpireReminderDays *int `json:"expire_reminder_days"` APIRateLimit *int `json:"api_rate_limit"` LogRetentionDays *int `json:"log_retention_days"` } // AuditLogResponse 操作日志响应 // Logan.Li type AuditLogResponse struct { ID uint `json:"id"` Username string `json:"username"` Action string `json:"action"` TargetType string `json:"target_type"` TargetID uint `json:"target_id"` TargetName string `json:"target_name"` Detail string `json:"detail"` Result string `json:"result"` IP string `json:"ip"` CreatedAt string `json:"created_at"` }