logs

package
v0.0.0-...-1489327 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLogs

func AddLogs(upd Logs) error

登录日志

func CountLogs

func CountLogs(condArr map[string]string) int64

统计数量

func DeleteLogs

func DeleteLogs(ids string) error

Types

type Logs

type Logs struct {
	Id        int64 `orm:"pk;column(id);"`
	Userid    int64 `orm:"column(user_id);"`
	Username  string
	Url       string
	Title     string
	Content   string
	Ip        string
	Useragent string
	Created   int64
}

func ListLogs

func ListLogs(condArr map[string]string, page int, offset int) (num int64, err error, log []Logs)

func (*Logs) TableName

func (this *Logs) TableName() string

Jump to

Keyboard shortcuts

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