package models import "time" type APIResponse[T any] struct { Code int `json:"code"` Message string `json:"message"` Data T `json:"data,omitempty"` } type UploadResponse struct { TaskID string `json:"taskID"` TotalFiles int `json:"totalFiles"` } type ScanStartResponse struct { TaskID string `json:"taskID"` Status string `json:"status"` Message string `json:"message,omitempty"` } type ProgressUpdate struct { Total int `json:"total"` Processed int `json:"processed"` Success int `json:"success"` Failed int `json:"failed"` Speed float64 `json:"speed"` Remaining string `json:"remaining"` Current string `json:"current,omitempty"` Status string `json:"status,omitempty"` Result *ScanResult `json:"result,omitempty"` UpdatedAt time.Time `json:"updated_at"` }