fix: 验收修正
This commit is contained in:
@@ -6,6 +6,8 @@ import "time"
|
||||
type LogEvent struct {
|
||||
// ID 是数据库主键。
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
// IngestKey 是主动文件日志等可重试来源提供的稳定幂等键。
|
||||
IngestKey *string `gorm:"size:160;uniqueIndex" json:"ingest_key,omitempty"`
|
||||
// CreatedAt 记录创建时间(写入日志事件时)。
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
// SourceKind 表示日志来源类型(例如 trap/syslog 等)。
|
||||
|
||||
Reference in New Issue
Block a user