37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
package local_event
|
|
|
|
import (
|
|
"time"
|
|
|
|
commonDTO "git.ilapage.cn/ila/yovision/Sense/server/common/dto"
|
|
)
|
|
|
|
type PageRequest struct {
|
|
commonDTO.Pagination `search:"-"`
|
|
CandidateState string `form:"candidateState"`
|
|
EvidenceState string `form:"evidenceState"`
|
|
RuleRef string `form:"ruleRef"`
|
|
Keyword string `form:"keyword"`
|
|
OccurredAfter string `form:"occurredAfter"`
|
|
OccurredBefore string `form:"occurredBefore"`
|
|
}
|
|
|
|
type Response struct {
|
|
ID string `json:"id"`
|
|
OccurredAt time.Time `json:"occurredAt"`
|
|
SourceRef string `json:"sourceRef"`
|
|
SourceLabel string `json:"sourceLabel"`
|
|
RuleRef string `json:"ruleRef"`
|
|
RuleName string `json:"ruleName"`
|
|
RuleVersion string `json:"ruleVersion"`
|
|
ZoneRef string `json:"zoneRef"`
|
|
CandidateState string `json:"candidateState"`
|
|
EvidenceState string `json:"evidenceState"`
|
|
EvidenceRef string `json:"evidenceRef,omitempty"`
|
|
EvidenceDetail string `json:"evidenceDetail,omitempty"`
|
|
RetainUntil time.Time `json:"retainUntil"`
|
|
RetentionState string `json:"retentionState"`
|
|
RemainingDays int `json:"remainingDays"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|