mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-26 23:16:36 +08:00
节点日志可以通过日期、关键词、级别等筛选
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package models
|
||||
|
||||
// 节点日志
|
||||
// NodeLog 节点日志
|
||||
type NodeLog struct {
|
||||
Id uint64 `field:"id"` // ID
|
||||
Role string `field:"role"` // 节点角色
|
||||
@@ -10,6 +10,9 @@ type NodeLog struct {
|
||||
Level string `field:"level"` // 级别
|
||||
NodeId uint32 `field:"nodeId"` // 节点ID
|
||||
Day string `field:"day"` // 日期
|
||||
ServerId uint32 `field:"serverId"` // 服务ID
|
||||
Hash string `field:"hash"` // 信息内容Hash
|
||||
Count uint32 `field:"count"` // 重复次数
|
||||
}
|
||||
|
||||
type NodeLogOperator struct {
|
||||
@@ -21,6 +24,9 @@ type NodeLogOperator struct {
|
||||
Level interface{} // 级别
|
||||
NodeId interface{} // 节点ID
|
||||
Day interface{} // 日期
|
||||
ServerId interface{} // 服务ID
|
||||
Hash interface{} // 信息内容Hash
|
||||
Count interface{} // 重复次数
|
||||
}
|
||||
|
||||
func NewNodeLogOperator() *NodeLogOperator {
|
||||
|
||||
Reference in New Issue
Block a user