moxitech-gzb/internal/models.go
2024-10-23 04:51:07 +07:00

15 lines
434 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package internal
// Sensor - структура для передачи данных с датчика
type Sensor struct {
Id int `json:"id"`
Temperature float64 `json:"tc"`
Humindity float64 `json:"hm"`
Ts int64 `json:"ts"`
}
// SensorBlock - структура для передачи данных нескольких датчиков
type SensorBlock struct {
Sensors []Sensor `json:"sensors"`
}