sensorconfig model
This commit is contained in:
parent
8fd9425dee
commit
e2c0324eb6
|
@ -1,6 +1,10 @@
|
|||
package sensorconfig
|
||||
|
||||
import "encoding/json"
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"git.loafle.net/overflow/commons-go/model/meta"
|
||||
)
|
||||
|
||||
type SensorConfig struct {
|
||||
SensorID json.Number `json:"sensorID,omitempty"`
|
||||
|
@ -8,5 +12,5 @@ type SensorConfig struct {
|
|||
Schedule *SensorConfigSchedule `json:"schedule,omitempty"`
|
||||
Crawler *SensorConfigCrawler `json:"crawler,omitempty"`
|
||||
Connection *SensorConfigConnection `json:"connection,omitempty"`
|
||||
Items *SensorConfigItems `json:"items,omitempty"`
|
||||
MetaCollectionItems []*meta.MetaCollectionItem `json:"metaCollectionItems,omitempty"`
|
||||
}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
package sensorconfig
|
||||
|
||||
import "git.loafle.net/overflow/commons-go/model/meta"
|
||||
|
||||
type SensorConfigItems struct {
|
||||
MetaCollectionItems []*meta.MetaCollectionItem `json:"metaCollectionItems,omitempty"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user