user

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type Users

type Users struct {
	Id         int64        `db:"id"`
	UserName   string       `db:"user_name"`
	NickName   string       `db:"nick_name"`
	Password   string       `db:"password"`
	Mobile     string       `db:"mobile"`
	CreateTime sql.NullTime `db:"create_time"`
	UpdateTime sql.NullTime `db:"update_time"`
}

type UsersModel

type UsersModel interface {
	FindByIds(ctx context.Context, ids ...interface{}) (map[int64]Users, error)
	FindRawByName(ctx context.Context, userName string) (*Users, error)
	Friends(hasUserModel hasusers.UserUsersModel, userId int64) ([]Users, error)
	GetListByKeyword(keyword string, id int64) ([]Users, error)
	// contains filtered or unexported methods
}

UsersModel is an interface to be customized, add more methods here, and implement the added methods in customUsersModel.

func NewUsersModel

func NewUsersModel(conn sqlx.SqlConn, c cache.CacheConf) UsersModel

NewUsersModel returns a model for the database table.

Jump to

Keyboard shortcuts

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