commons-go/model/target/Target.go
crusader ab936be303 ing
2018-06-12 22:13:22 +09:00

22 lines
794 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"`
}