sensorconfig model

This commit is contained in:
insanity 2018-07-04 17:55:26 +09:00
parent 8fd9425dee
commit e2c0324eb6
2 changed files with 9 additions and 12 deletions

View File

@ -1,6 +1,10 @@
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"`
@ -8,5 +12,5 @@ type SensorConfig struct {
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"`
} }

View File

@ -1,7 +0,0 @@
package sensorconfig
import "git.loafle.net/overflow/commons-go/model/meta"
type SensorConfigItems struct {
MetaCollectionItems []*meta.MetaCollectionItem `json:"metaCollectionItems,omitempty"`
}