model

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProductKey          = "p_001"
	Heart               = 10
	TemperatureToplimit = 40.0 // 假设温度阈值上限
	HumidityToplimit    = 80.0 // 假设湿度阈值上限
)

Functions

This section is empty.

Types

type ThCalcModel

type ThCalcModel struct {
	Temperature float64   `json:"temperature"` // 温度
	Humidity    float64   `json:"humidity"`    // 湿度
	On          bool      `json:"on"`          // 开关
	CurTime     time.Time `json:"curTime"`     // 当前时间
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL