1 Star 0 Fork 1

上海炘璞电子科技有限公司/iot-infrastructure

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
open.device.data.go 881 Bytes
一键复制 编辑 原始数据 按行查看 历史
alex 提交于 2023-06-26 15:56 +08:00 . 规范link_message数据字段
package module
// OpenDeviceData 开放数据:设备消息
type OpenDeviceData struct {
DeviceID string `json:"deviceId,omitempty"` // 设备ID
DeviceCode string `json:"deviceCode,omitempty"` // 设备Code(唯一编号)
DeviceName string `json:"deviceName,omitempty"` // 名称
Time int64 `json:"time,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
}
// OpenShadowData 开放数据:物消息
type OpenShadowData struct {
ThingID string `json:"thingId,omitempty"` // App(应用)ID
ThingCode string `json:"thingCode,omitempty"` // Code(唯一编码)
ThingName string `json:"thingName,omitempty"` // 名称
Time int64 `json:"time,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/thingple/iot-infrastructure.git
git@gitee.com:thingple/iot-infrastructure.git
thingple
iot-infrastructure
iot-infrastructure
v0.6.3

搜索帮助