groupdmchannel

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	// contains filtered or unexported fields
}

func New

func New(c *sqlx.DB) *Entity

func (*Entity) GetGroupDmChannel

func (e *Entity) GetGroupDmChannel(ctx context.Context, channelId, userId int64) (model.GroupDMChannel, error)

func (*Entity) GetGroupDmParticipants

func (e *Entity) GetGroupDmParticipants(ctx context.Context, channelId int64) ([]model.GroupDMChannel, error)

func (*Entity) GetUserGroupDmChannels added in v1.5.0

func (e *Entity) GetUserGroupDmChannels(ctx context.Context, userId int64) ([]model.GroupDMChannel, error)

func (*Entity) IsGroupDmParticipant

func (e *Entity) IsGroupDmParticipant(ctx context.Context, channelId int64, userId int64) (bool, error)

func (*Entity) JoinGroupDmChannel

func (e *Entity) JoinGroupDmChannel(ctx context.Context, channelId, userId int64) error

func (*Entity) JoinGroupDmChannelMany

func (e *Entity) JoinGroupDmChannelMany(ctx context.Context, channelId int64, users []int64) error

func (*Entity) LeaveGroupDmChannel

func (e *Entity) LeaveGroupDmChannel(ctx context.Context, channelId, userId int64) error

type GroupDMChannel

type GroupDMChannel interface {
	JoinGroupDmChannelMany(ctx context.Context, channelId int64, users []int64) error
	JoinGroupDmChannel(ctx context.Context, channelId, userId int64) error
	GetGroupDmChannel(ctx context.Context, channelId, userId int64) (model.GroupDMChannel, error)
	LeaveGroupDmChannel(ctx context.Context, channelId, userId int64) error
	GetGroupDmParticipants(ctx context.Context, channelId int64) ([]model.GroupDMChannel, error)
	IsGroupDmParticipant(ctx context.Context, channelId int64, userId int64) (bool, error)
	GetUserGroupDmChannels(ctx context.Context, userId int64) ([]model.GroupDMChannel, error)
}

Jump to

Keyboard shortcuts

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