biz

package
v0.0.0-...-b62833e Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(
	NewAccountUseCase,
)

Functions

This section is empty.

Types

type AccountUseCase

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

func NewAccountUseCase

func NewAccountUseCase(cfg *conf.Config) *AccountUseCase

func (AccountUseCase) CheckEmailVerifyCode

func (r AccountUseCase) CheckEmailVerifyCode(email string, emailType model.VerifyCodeType, code string) bool

func (AccountUseCase) GeneratePassword

func (r AccountUseCase) GeneratePassword(password string) string

func (AccountUseCase) GenerateToken

func (r AccountUseCase) GenerateToken(_ context.Context, userId int) (string, int64, error)

func (AccountUseCase) SendEmail

func (r AccountUseCase) SendEmail(email string, emailType model.VerifyCodeType) error

func (AccountUseCase) VerifyPassword

func (r AccountUseCase) VerifyPassword(account *ent.User, password string) bool

Jump to

Keyboard shortcuts

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