log

package
v0.0.0-...-5259590 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 2 Imported by: 0

README

用户操作日志

Documentation

Index

Constants

View Source
const AppName = "log"
View Source
const (
	DEFAULT_OPERATE_LOG_TOPIC = "maudit.log.operate"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OperateLog

type OperateLog struct {
	// Who
	User string `json:"user"`
	// When
	Time int64 `json:"time"`
	// What
	Operation string `json:"operation"`
}

用户的操作日志

func (*OperateLog) MustToJson

func (o *OperateLog) MustToJson() []byte

type Service

type Service interface {
	// 保存日志
	Save(context.Context, *OperateLog) (*OperateLog, error)
}

Directories

Path Synopsis
provider

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL