45 Star 552 Fork 170

联犀/物联网iot模块

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
assemble.go 431 Bytes
一键复制 编辑 原始数据 按行查看 历史
杨磊 提交于 2024-12-26 22:47 +08:00 . feat: 功能增强
package sdkLogRepo
import (
"gitee.com/unitedrhino/things/service/dmsvr/internal/domain/deviceLog"
"github.com/spf13/cast"
)
func ToDeviceSDKLog(productID string, db map[string]any) *deviceLog.SDK {
return &deviceLog.SDK{
ProductID: productID,
DeviceName: cast.ToString(db["device_name"]),
Content: cast.ToString(db["content"]),
Timestamp: cast.ToTime(db["ts"]),
LogLevel: cast.ToInt64(db["log_level"]),
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/unitedrhino/things.git
git@gitee.com:unitedrhino/things.git
unitedrhino
things
物联网iot模块
v1.5.73

搜索帮助