biz

package
v0.0.0-...-9bd63dd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 6 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCaptcha = errors.Unauthorized("UNAUTHORIZED", "验证码错误")
)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type AuthUseCase

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

func NewAuthUseCase

func NewAuthUseCase(logger log.Logger) *AuthUseCase

type CaptchaRepo

type CaptchaRepo interface {
}

type CaptchaUseCase

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

func NewCaptchaUseCase

func NewCaptchaUseCase(logger log.Logger) *CaptchaUseCase

func (*CaptchaUseCase) GetCaptcha

func (us *CaptchaUseCase) GetCaptcha(ctx context.Context) (captchaInfo *captcha.CaptchaInfo, err error)

func (*CaptchaUseCase) VerifyCaptcha

func (us *CaptchaUseCase) VerifyCaptcha(ctx context.Context, captchaId string, captchaCode string) (err error)

type OauthUseCase

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

func NewOauthUseCase

func NewOauthUseCase(logger log.Logger, server *server.Server) *OauthUseCase

Jump to

Keyboard shortcuts

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