added model
This commit is contained in:
24
modules/probe/model/Probe.go
Normal file
24
modules/probe/model/Probe.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model"
|
||||
"git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model"
|
||||
domain "git.loafle.net/overflow/overflow_commons_go/modules/domain/model"
|
||||
member "git.loafle.net/overflow/overflow_commons_go/modules/member/model"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
type Probe struct {
|
||||
Id json.Number `json:"id,Number,omitempty"`
|
||||
Status *meta.MetaProbeStatus `json:"status,omitempty"`
|
||||
CreateDate timestamp.Timestamp `json:"createDate,omitempty"`
|
||||
Domain *domain.Domain `json:"domain,omitempty"`
|
||||
ProbeKey string `json:"probeKey,omitempty"`
|
||||
EncryptionKey string `json:"encryptionKey,omitempty"`
|
||||
TargetCount int `json:"targetCount,omitempty"`
|
||||
SensorCount int `json:"sensorCount,omitempty"`
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
Cidr string `json:"cidr,omitempty"`
|
||||
AuthorizeDate timestamp.Timestamp `json:"authorizeDate,omitempty"`
|
||||
AuthorizeMember *member.Member `json:"authorizeMember,omitempty"`
|
||||
}
|
||||
19
modules/probe/model/ProbeTask.go
Normal file
19
modules/probe/model/ProbeTask.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model"
|
||||
"git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model"
|
||||
)
|
||||
|
||||
type ProbeTask struct {
|
||||
Id json.Number `json:"id,Number,omitempty"`
|
||||
MetaProbeTaskType *meta.MetaProbeTaskType `json:"metaProbeTaskType,omitempty"`
|
||||
Probe *Probe `json:"probe,omitempty"`
|
||||
Data string `json:"data,omitempty"`
|
||||
CreateDate timestamp.Timestamp `json:"createDate,omitempty"`
|
||||
SendDate timestamp.Timestamp `json:"sendDate,omitempty"`
|
||||
StartDate timestamp.Timestamp `json:"startDate,omitempty"`
|
||||
EndDate timestamp.Timestamp `json:"endDate,omitempty"`
|
||||
Succeed bool `json:"succeed,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user