This commit is contained in:
insanity 2018-07-02 20:58:30 +09:00
parent 54725b74e1
commit b5fa3f60b9

View File

@ -3,10 +3,10 @@ package sensorconfig
import "encoding/json" import "encoding/json"
type SensorConfig struct { type SensorConfig struct {
SensorID json.Number `json:"id,Number,omitempty"` SensorID json.Number `json:"id,Number,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"` Items *SensorConfigItems `json:"items,omitempty"`
} }