hasusers

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type UserUsers

type UserUsers struct {
	Id        int64  `db:"id"`
	UserId    int64  `db:"user_id"`
	HasUserId int64  `db:"has_user_id"`
	ChannelId string `db:"channel_id"`
}

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.

Jump to

Keyboard shortcuts

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