Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.