commons-go/model/target/Target.go

20 lines
679 B
Go
Raw Permalink Normal View History

2018-04-26 07:37:59 +00:00
package target
2018-04-12 09:38:04 +00:00
import (
"encoding/json"
"git.loafle.net/overflow/commons-go/core/util"
2018-06-12 09:18:11 +00:00
"git.loafle.net/overflow/commons-go/model/infra"
"git.loafle.net/overflow/commons-go/model/meta"
2018-04-12 09:38:04 +00:00
)
type Target struct {
2018-06-12 13:13:22 +00:00
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"`
2018-04-12 09:38:04 +00:00
}