badge

package
v0.0.0-...-dd7b778 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	DBGetter func(context.Context) (mysql.Client, error) `validate:"required"`
}

Dependency 表示用户账户仓库初始化依赖

type Repo

type Repo struct {
	Dependency
}

Repo 用户徽章仓库

func New

func New(d Dependency) (*Repo, error)

func (*Repo) GetUserBadges

func (r *Repo) GetUserBadges(ctx context.Context, userID string) ([]badge.Item, error)

Jump to

Keyboard shortcuts

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