users

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID       uint64    `xorm:"pk autoincr 'id'"`
	UserName string    `xorm:"varchar(16) 'user_name'"`
	Passwd   string    `xorm:"varchar(100) 'passwd'"`
	Email    string    `xorm:"'email'"`
	Created  time.Time `xorm:"created"`
	Updated  time.Time `xorm:"updated"`
}

User 系统注册用户登录表

func (User) TableName

func (User) TableName() string

TableName 表名

type UserInfo

type UserInfo struct {
	ID       uint64    `xorm:"pk autoincr 'id'"`
	UID      uint64    `xorm:"'user_id'"`
	NickName string    `xorm:"varchar(100) 'nickname'"`
	Age      int       `xorm:"'age'"`
	Phone    int       `xorm:"'phone'"`
	Address  string    `xorm:"'address'"`
	Updated  time.Time `xorm:"updated 'last_update_time'"`
}

UserInfo 用户信息表

func (UserInfo) TableName

func (UserInfo) TableName() string

TableName 表名

type UserLoginLog

type UserLoginLog struct {
	ID        uint64    `xorm:"pk autoincr 'id'"`
	UID       uint64    `xorm:"'user_id'"`
	ClientIP  string    `xorm:"'client_ip'"`
	LoginTime time.Time `xorm:"created 'login_time'"`
}

UserLoginLog 用户登录系统日志表

func (UserLoginLog) TableName

func (UserLoginLog) TableName() string

TableName 表名

Jump to

Keyboard shortcuts

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