commons-go/model/target/Target.go
2018-06-12 18:18:11 +09:00

22 lines
761 B
Go

package target
import (
"encoding/json"
"git.loafle.net/overflow/commons-go/core/util"
"git.loafle.net/overflow/commons-go/model/infra"
"git.loafle.net/overflow/commons-go/model/meta"
"git.loafle.net/overflow/commons-go/model/sensor"
)
type Target struct {
ID json.Number `json:"id,Number,omitempty"`
Infra *infra.Infra `json:"infra, omitempty"`
MetaTargetType *meta.MetaTargetType `json:"metaTargetType, omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
SensorCount json.Number `json:"sensorCount, omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"`
Sensors []sensor.Sensor `json:"sensors,omitempty"`
}