This commit is contained in:
crusader 2018-07-04 21:13:30 +09:00
parent 2b132edc08
commit 7b089c913a
3 changed files with 13 additions and 26 deletions

View File

@ -9,13 +9,13 @@ import (
) )
type Sensor struct { type Sensor struct {
ID json.Number `json:"id,Number,omitempty"` ID json.Number `json:"id,Number,omitempty"`
Target *target.Target `json:"target,omitempty"` Target *target.Target `json:"target,omitempty"`
Name string `json:"name,omitempty"` Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"` MetaSensorStatus *meta.MetaSensorStatus `json:"metaSensorStatus,omitempty"`
MetaSensorStatus *meta.MetaSensorStatus `json:"metaSensorStatus,omitempty"` MetaCrawlerMapping *meta.MetaCrawlerMapping `json:"metaCrawlerMapping,omitempty"`
MetaCrawler *meta.MetaCrawler `json:"metaCrawler,omitempty"` CrawlerInputItems string `json:"crawlerInputItems,omitempty"`
CrawlerInputItems string `json:"crawlerInputItems,omitempty"` ItemCount json.Number `json:"itemCount,omitempty"`
ItemCount json.Number `json:"itemCount,omitempty"` CreateDate *util.Timestamp `json:"createDate,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"` Interval json.Number `json:"interval,Number,omitempty"`
} }

View File

@ -8,8 +8,8 @@ import (
) )
type SensorItem struct { type SensorItem struct {
ID json.Number `json:"id,Number,omitempty"` ID json.Number `json:"id,Number,omitempty"`
Sensor *Sensor `json:"sensor,omitempty"` Sensor *Sensor `json:"sensor,omitempty"`
MetaSensorItem *meta.MetaSensorItem `json:"metaSensorItem,omitempty"` MetaDisplayItemMapping *meta.MetaDisplayItemMapping `json:"metaDisplayItemMapping,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"` CreateDate *util.Timestamp `json:"createDate,omitempty"`
} }

View File

@ -1,13 +0,0 @@
package sensor
import (
"encoding/json"
"git.loafle.net/overflow/commons-go/model/meta"
)
type SensorItemDependency struct {
ID json.Number `json:"id,Number,omitempty"`
MetaSensorDisplayItem *meta.MetaSensorDisplayItem `json:"metaSensorDisplayItem,omitempty"`
MetaSensorItemKey *meta.MetaSensorItemKey `json:"metaSensorItemKey,omitempty"`
}