package service type EnvData struct { Sn string `json:"sn"` Temperature float64 `json:"temperature"` Humidity float64 `json:"humidity"` Illuminance int64 `json:"illuminance"` } type OpticalData struct { Sn string `json:"sn"` Illuminance int64 `json:"illuminance"` }