log

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLoginLog

func CreateLoginLog(l *LoginLog) error

func CreateOperateLog

func CreateOperateLog(l *OperateLog) error

Types

type LoginLog

type LoginLog struct {
	Id       int    `json:"id"`
	Username string `json:"username"`
	Ip       string `json:"ip"`
	IsLogin  bool   `json:"isLogin"`
	Time     string `json:"time"`
}

func GetLoginLogList

func GetLoginLogList(startTime, stopTime string, rows, offset int) ([]*LoginLog, error)

type OperateLog

type OperateLog struct {
	Id          int    `json:"id"`
	Username    string `json:"username"`
	Ip          string `json:"ip"`
	Operate     string `json:"operate"`
	ProcessId   int    `json:"processId"`
	ProcessName string `json:"processName"`
	Time        string `json:"time"`
}

func GetOperateLogList

func GetOperateLogList(startTime, stopTime string, username string, processId int, rows, offset int) ([]*OperateLog, error)

Jump to

Keyboard shortcuts

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