account

package
v0.0.0-...-bc0dcda Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 9 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
	// contains filtered or unexported fields
}

Repo 用户账户仓库

func New

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

New 新建帐户仓库

func (*Repo) QueryAccountByUsername

func (r *Repo) QueryAccountByUsername(
	ctx context.Context, username string,
) (*pb.UserInfo, error)

QueryAccountByUsername 根据用户名查询用户账户

Jump to

Keyboard shortcuts

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