sensorconfig model
This commit is contained in:
parent
8fd9425dee
commit
e2c0324eb6
|
@ -1,12 +1,16 @@
|
||||||
package sensorconfig
|
package sensorconfig
|
||||||
|
|
||||||
import "encoding/json"
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
|
||||||
|
"git.loafle.net/overflow/commons-go/model/meta"
|
||||||
|
)
|
||||||
|
|
||||||
type SensorConfig struct {
|
type SensorConfig struct {
|
||||||
SensorID json.Number `json:"sensorID,omitempty"`
|
SensorID json.Number `json:"sensorID,omitempty"`
|
||||||
|
|
||||||
Schedule *SensorConfigSchedule `json:"schedule,omitempty"`
|
Schedule *SensorConfigSchedule `json:"schedule,omitempty"`
|
||||||
Crawler *SensorConfigCrawler `json:"crawler,omitempty"`
|
Crawler *SensorConfigCrawler `json:"crawler,omitempty"`
|
||||||
Connection *SensorConfigConnection `json:"connection,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