account

package
v0.0.0-...-6ba7596 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 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 Dependency

type Dependency struct {
	DBGetter   func(context.Context) (mysql.Client, error)
	GormGetter func(context.Context) (*gorm.DB, error)
}

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

type UserAccountRepository

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

UserAccountRepository 用户账户仓库

func (*UserAccountRepository) InitializeUserAccountRepository

func (r *UserAccountRepository) InitializeUserAccountRepository(d Dependency) error

InitializeUserAccountRepository 初始化用户账户仓库

func (*UserAccountRepository) QueryAccountByUsername

func (r *UserAccountRepository) QueryAccountByUsername(
	ctx context.Context, username string,
) (*entity.Account, error)

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

Jump to

Keyboard shortcuts

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