mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
47 lines
1.7 KiB
Go
47 lines
1.7 KiB
Go
package models
|
|
|
|
import "github.com/iwind/TeaGo/dbs"
|
|
|
|
// NodeLog 节点日志
|
|
type NodeLog struct {
|
|
Id uint64 `field:"id"` // ID
|
|
Role string `field:"role"` // 节点角色
|
|
Type string `field:"type"` // 类型
|
|
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"` // 日期
|
|
ServerId uint32 `field:"serverId"` // 服务ID
|
|
OriginId uint32 `field:"originId"` // 源站ID
|
|
Hash string `field:"hash"` // 信息内容Hash
|
|
Count uint32 `field:"count"` // 重复次数
|
|
IsFixed bool `field:"isFixed"` // 是否已处理
|
|
IsRead bool `field:"isRead"` // 是否已读
|
|
Params dbs.JSON `field:"params"` // 参数
|
|
}
|
|
|
|
type NodeLogOperator struct {
|
|
Id interface{} // ID
|
|
Role interface{} // 节点角色
|
|
Type interface{} // 类型
|
|
CreatedAt interface{} // 创建时间
|
|
Tag interface{} // 标签
|
|
Description interface{} // 描述
|
|
Level interface{} // 级别
|
|
NodeId interface{} // 节点ID
|
|
Day interface{} // 日期
|
|
ServerId interface{} // 服务ID
|
|
OriginId interface{} // 源站ID
|
|
Hash interface{} // 信息内容Hash
|
|
Count interface{} // 重复次数
|
|
IsFixed interface{} // 是否已处理
|
|
IsRead interface{} // 是否已读
|
|
Params interface{} // 参数
|
|
}
|
|
|
|
func NewNodeLogOperator() *NodeLogOperator {
|
|
return &NodeLogOperator{}
|
|
}
|