loginLogModel

package
v0.0.0-...-fdfd418 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginLog

type LoginLog struct {
	Id         int64  `json:"id" gorm:"primary_key; auto_increment; not null"` // 设置字段 id 自增类型。
	Username   string `json:"username" gorm:"type:varchar(50); not null"`      // 用户名
	Ip         string `json:"ip" gorm:"type:varchar(64); not null "`           // ip 地址
	CreateTime string `json:"createTime" gorm:"type:varchar(50); not null"`    // 创建时间
}

用户model

func (*LoginLog) List

func (loginLog *LoginLog) List(page int, pageSize int, username string) ([]LoginLog, int64)

func (*LoginLog) Save

func (loginLog *LoginLog) Save()

新增

Jump to

Keyboard shortcuts

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