type Logic struct {
ID int `json:"id"`
LogicName string `json:"logic_name"`
Elems []Element `json:"elems"`
SensorID int `json:"sensor_id"`
Sensor model.Sensor `json:"sensor"`
}
type Node struct {
ID int `json:"id"`
Name string `json:"name"`
Location Location `json:"location"`
SinkID int `json:"sink_id"`
Sink model.Sink `json:"sink"`
Sensors []model.Sensor `json:"sensors"`
}
type Square struct {
Left float64 `form:"left" json:"left"`
Right float64 `form:"right" json:"right"`
Up float64 `form:"up" json:"up"`
Down float64 `form:"down" json:"down"`
}