model.go 296 B

12345678910111213
  1. package util
  2. type EnvData struct {
  3. Sn string `json:"sn"`
  4. Temperature float64 `json:"temperature"`
  5. Humidity float64 `json:"humidity"`
  6. Illuminance int64 `json:"illuminance"`
  7. }
  8. type OpticalData struct {
  9. Sn string `json:"sn"`
  10. Illuminance int64 `json:"illuminance"`
  11. }