2024-07-23 14:48:37 +08:00
|
|
|
package model
|
|
|
|
|
|
2025-09-04 17:13:32 +08:00
|
|
|
import "time"
|
|
|
|
|
|
2024-07-23 14:48:37 +08:00
|
|
|
type Clam struct {
|
|
|
|
|
BaseModel
|
|
|
|
|
|
2024-08-14 10:43:32 +08:00
|
|
|
Name string `gorm:"not null" json:"name"`
|
|
|
|
|
Path string `gorm:"not null" json:"path"`
|
|
|
|
|
InfectedStrategy string `json:"infectedStrategy"`
|
|
|
|
|
InfectedDir string `json:"infectedDir"`
|
|
|
|
|
Spec string `json:"spec"`
|
2025-09-23 11:56:04 +08:00
|
|
|
RetryTimes uint `json:"retryTimes"`
|
|
|
|
|
Timeout uint `json:"timeout"`
|
2024-08-14 10:43:32 +08:00
|
|
|
EntryID int `json:"entryID"`
|
|
|
|
|
Description string `json:"description"`
|
2025-09-04 17:13:32 +08:00
|
|
|
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
|
IsExecuting bool `json:"isExecuting"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ClamRecord struct {
|
|
|
|
|
BaseModel
|
|
|
|
|
|
|
|
|
|
ClamID uint `json:"clamID"`
|
|
|
|
|
TaskID string `json:"taskID"`
|
|
|
|
|
StartTime time.Time `json:"startTime"`
|
|
|
|
|
ScanTime string `json:"scanTime"`
|
|
|
|
|
InfectedFiles string `json:"infectedFiles"`
|
|
|
|
|
TotalError string `json:"totalError"`
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
|
Message string `json:"message"`
|
2024-07-23 14:48:37 +08:00
|
|
|
}
|