Documentation
¶
Index ¶
Constants ¶
View Source
const (
ActionLogin = "LOGIN" // 登录 {ip}
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
Id primitive.ObjectID `bson:"_id" json:"id"` // 数据库存储的ID
Username string `bson:"username" json:"username"`
Action Action `bson:"action" json:"action"` // 类型
Description string `bson:"description" json:"description"` // 描述
Options map[string]string `bson:"options" json:"options"` // 选项
Timestamp int64 `bson:"timestamp" json:"timestamp"` // 时间戳
}
审计日志
Click to show internal directories.
Click to hide internal directories.