group

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemberType added in v0.30.3

type MemberType uint8
const (
	MemberAll MemberType = 1 << iota / 2
	MemberMod
	MemberNormal
)

type Repo added in v0.30.3

type Repo interface {
	GetByName(ctx context.Context, name string) (model.Group, error)
	GetByID(ctx context.Context, id model.GroupID) (model.Group, error)

	CountMembersByID(ctx context.Context, id model.GroupID, memberType MemberType) (int64, error)
	ListMembersByID(
		ctx context.Context, id model.GroupID, memberType MemberType, limit, offset int,
	) ([]model.GroupMember, error)
}

func NewMysqlRepo

func NewMysqlRepo(q *query.Query, log *zap.Logger) (Repo, error)

Jump to

Keyboard shortcuts

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