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)
}
Click to show internal directories.
Click to hide internal directories.