AnalysisBindVisit

package
v5.1.20 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//OpenSub 是否启动订阅
	OpenSub = false
)

Functions

func AppendLog

func AppendLog(userID int64, bindSystem string, bindID int64)

AppendLog 添加新的访问

func CheckLog

func CheckLog(userID int64, bindSystem string, bindID int64) bool

CheckLog 检查是否访问

func Init

func Init()

Types

type ArgsGetLogList

type ArgsGetLogList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//用户
	UserID int64 `json:"userID" check:"id" empty:"true"`
	//来源模块
	BindSystem string `json:"bindSystem" check:"mark" empty:"true"`
	BindID     int64  `json:"bindID" check:"id" empty:"true"`
}

ArgsGetLogList 获取模块的访问记录参数

type FieldsLog

type FieldsLog struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//用户
	UserID int64 `db:"user_id" json:"userID"`
	//来源模块
	BindSystem string `db:"bind_system" json:"bindSystem"`
	BindID     int64  `db:"bind_id" json:"bindID"`
}

func GetLogList

func GetLogList(args *ArgsGetLogList) (dataList []FieldsLog, dataCount int64, err error)

GetLogList 获取模块的访问记录

Jump to

Keyboard shortcuts

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