shadow_doc.go 400 B

1234567891011121314
  1. package main
  2. import "github.com/gogf/gf/encoding/gjson"
  3. type ShadowDoc struct {
  4. Version int `json:"version"` // 版本
  5. Timestamp int64 `json:"timestamp"` // 更新时间
  6. DeviceCode string `json:"device_code"`
  7. Status struct {
  8. Reported *gjson.Json `json:"reported"`
  9. Desired *gjson.Json `json:"desired"`
  10. } `json:"status"`
  11. Commands []map[string]interface{} `json:"commands"`
  12. }