mqttData.go 322 B

1234567891011121314151617
  1. package common
  2. type SwitchData struct {
  3. Sn string `json:"sn"`
  4. Way int `json:"way"`
  5. TurnOf int `json:"turnOf"`
  6. }
  7. type LampData struct {
  8. Way int `json:"way"`
  9. BrightNess int `json:"brightNess"`
  10. }
  11. type InductanceData struct {
  12. Sn string `json:"sn"`
  13. TotalPower int `json:"totalPower"`
  14. }