Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type UserUsersModel ¶
type UserUsersModel interface { CheckFriend(userId, friendId int64) (*UserUsers, error) IsFriend(userId int64, friendId ...interface{}) ([]UserUsers, error) Friends(userId int64) ([]UserUsers, error) AllChannelIdUsers(channelId string) ([]UserUsers, error) DeleteFriendByChannelId(channelId string) (bool, error) // contains filtered or unexported methods }
UserUsersModel is an interface to be customized, add more methods here, and implement the added methods in customUserUsersModel.
func NewUserUsersModel ¶
func NewUserUsersModel(conn sqlx.SqlConn) UserUsersModel
NewUserUsersModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.