th7/data/core/data.go

21 lines
390 B
Go

package core
import "th7/data/temperature"
type Channel struct {
Id int `json:"id"`
Value float64 `json:"value"`
Unit temperature.Unit `json:"unit"`
}
type Ratio struct {
Vref float64 `json:"vref"`
Vadj float64 `json:"vadj"`
Pivdd float64 `json:"pivdd"`
}
type Data struct {
Channels [7]Channel `json:"channels"`
Table Ratio `json:"table"`
}