models

package
v0.0.0-...-10b6da0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 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        string         `db:"id"`         // 主键ID
	Avatar    string         `db:"avatar"`     // 用户头像
	Nickname  string         `db:"nickname"`   // 用户昵称
	Phone     string         `db:"phone"`      // 手机号
	Password  sql.NullString `db:"password"`   // 密码
	Status    sql.NullInt64  `db:"status"`     // 状态
	Sex       sql.NullInt64  `db:"sex"`        // 性别
	CreatedAt time.Time      `db:"created_at"` // 创建时间
	UpdatedAt time.Time      `db:"updated_at"` // 更新时间
}

type UsersModel

type UsersModel interface {
	// 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, opts ...cache.Option) 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