实现节点运行日志上传

This commit is contained in:
GoEdgeLab
2020-10-09 11:06:37 +08:00
parent d0c83536fa
commit 42fa7e24e8
9 changed files with 230 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
package models
// 节点日志
type NodeLog struct {
Id uint64 `field:"id"` // ID
Role string `field:"role"` // 节点角色
CreatedAt uint64 `field:"createdAt"` // 创建时间
Tag string `field:"tag"` // 标签
Description string `field:"description"` // 描述
Level string `field:"level"` // 级别
NodeId uint32 `field:"nodeId"` // 节点ID
Day string `field:"day"` // 日期
}
type NodeLogOperator struct {
Id interface{} // ID
Role interface{} // 节点角色
CreatedAt interface{} // 创建时间
Tag interface{} // 标签
Description interface{} // 描述
Level interface{} // 级别
NodeId interface{} // 节点ID
Day interface{} // 日期
}
func NewNodeLogOperator() *NodeLogOperator {
return &NodeLogOperator{}
}