Documentation ¶
Overview ¶
Package securitylog 安全日志
Index ¶
- func Install(mod string, db *orm.DB)
- type Log
- type Logs
- type SecurityLog
- func (l *SecurityLog) Add(uid int64, ip, ua, content string) error
- func (l *SecurityLog) AddWithContext(uid int64, ctx *web.Context, content string) error
- func (l *SecurityLog) Get(uid int64, size, page int, txt string, start, end time.Time) (*Logs, error)
- func (l *SecurityLog) GetHandle(uid int64, ctx *web.Context) web.Responser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SecurityLog ¶
type SecurityLog struct {
// contains filtered or unexported fields
}
SecurityLog 安全日志
安全日志是以用户类型为区分的日志对象, 用于记录用户的一些比较重要的操作记录。
func New ¶
func New(mod string, db *orm.DB) *SecurityLog
func (*SecurityLog) Add ¶
func (l *SecurityLog) Add(uid int64, ip, ua, content string) error
Add 添加一条记录
func (*SecurityLog) AddWithContext ¶
Click to show internal directories.
Click to hide internal directories.