ing
This commit is contained in:
19
model/sensor/Sensor.go
Normal file
19
model/sensor/Sensor.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package sensor
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"git.loafle.net/overflow/commons-go/core/util"
|
||||
"git.loafle.net/overflow/commons-go/model/meta"
|
||||
"git.loafle.net/overflow/commons-go/model/target"
|
||||
)
|
||||
|
||||
type Sensor struct {
|
||||
ID json.Number `json:"id,Number,omitempty"`
|
||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
MetaSensorStatus *meta.MetaSensorStatus `json:"status,omitempty"`
|
||||
Target *target.Target `json:"target,omitempty"`
|
||||
Crawler *meta.MetaCrawler `json:"crawler,omitempty"`
|
||||
CrawlerInputItems string `json:"crawlerInputItems,omitempty"`
|
||||
}
|
||||
15
model/sensor/SensorItem.go
Normal file
15
model/sensor/SensorItem.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package sensor
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"git.loafle.net/overflow/commons-go/core/util"
|
||||
"git.loafle.net/overflow/commons-go/model/meta"
|
||||
)
|
||||
|
||||
type SensorItem struct {
|
||||
ID json.Number `json:"id,Number,omitempty"`
|
||||
Sensor *Sensor `json:"sensor,omitempty"`
|
||||
MetaSensorItem *meta.MetaSensorItem `json:"item,omitempty"`
|
||||
CreateDate util.Timestamp `json:"createDate,omitempty"`
|
||||
}
|
||||
13
model/sensor/SensorItemDependency.go
Normal file
13
model/sensor/SensorItemDependency.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package sensor
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"git.loafle.net/overflow/commons-go/model/meta"
|
||||
)
|
||||
|
||||
type SensorItemDependency struct {
|
||||
ID json.Number `json:"id,Number,omitempty"`
|
||||
DisplayItem *meta.MetaSensorDisplayItem `json:"displayItem,omitempty"`
|
||||
SensorItem *meta.MetaSensorItemKey `json:"sensorItem,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user