Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCaptcha = errors.Unauthorized("UNAUTHORIZED", "验证码错误")
)
View Source
var ProviderSet = wire.NewSet(NewAuthUseCase, NewCaptchaUseCase)
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 ¶
type OauthUseCase ¶
type OauthUseCase struct {
// contains filtered or unexported fields
}
func NewOauthUseCase ¶
func NewOauthUseCase(logger log.Logger, server *server.Server) *OauthUseCase
Click to show internal directories.
Click to hide internal directories.