mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-12 07:29:11 +08:00
53 lines
1.1 KiB
Go
53 lines
1.1 KiB
Go
package dto
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type ClamBaseInfo struct {
|
|
Version string `json:"version"`
|
|
IsActive bool `json:"isActive"`
|
|
IsExist bool `json:"isExist"`
|
|
}
|
|
|
|
type ClamInfo struct {
|
|
ID uint `json:"id"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
Name string `json:"name"`
|
|
Path string `json:"path"`
|
|
LastHandleDate string `json:"lastHandleDate"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type ClamLogSearch struct {
|
|
PageInfo
|
|
|
|
ClamID uint `json:"clamID"`
|
|
StartTime time.Time `json:"startTime"`
|
|
EndTime time.Time `json:"endTime"`
|
|
}
|
|
|
|
type ClamLog struct {
|
|
Name string `json:"name"`
|
|
ScanDate string `json:"scanDate"`
|
|
ScanTime string `json:"scanTime"`
|
|
InfectedFiles string `json:"infectedFiles"`
|
|
Log string `json:"log"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type ClamCreate struct {
|
|
Name string `json:"name"`
|
|
Path string `json:"path"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type ClamUpdate struct {
|
|
ID uint `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
Path string `json:"path"`
|
|
Description string `json:"description"`
|
|
}
|