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 ¶
NewUsersModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.