action_log

package
v0.0.0-...-cba5bb6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Zlib Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(db *gorm.DB, user uint64, actionType, action string, req *http.Request, extra ...string)

Types

type ActionLog

type ActionLog struct {
	ID         uint64 `gorm:"primary_key"`
	UserID     uint64 `gorm:"not null"`
	ActionType string `gorm:"not null"`
	Action     string `gorm:"not null"`
	Log        string `gorm:"type:text"`

	CreatedAt time.Time `json:"-"`
	UpdatedAt time.Time `json:"-"`
}

Jump to

Keyboard shortcuts

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