biz

package
v0.0.0-...-046bdf9 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 3 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is biz providers.

Functions

This section is empty.

Types

type EmailRepo

type EmailRepo interface {
	SendEmail(ctx context.Context, email string, subject, content string) error
}

type EmailUseCase

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

func NewEmailUseCase

func NewEmailUseCase(repo EmailRepo, logger log.Logger) *EmailUseCase

func (*EmailUseCase) SendEmail

func (suc *EmailUseCase) SendEmail(ctx context.Context, email string, subject, content string) error

type SmsRepo

type SmsRepo interface {
	SendSmsVerifyCode(ctx context.Context, mobile string, sendType int64) (int64, int64, string, error)
}

type SmsUseCase

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

func NewSmsUseCase

func NewSmsUseCase(repo SmsRepo, logger log.Logger) *SmsUseCase

func (*SmsUseCase) SendSmsVerifyCode

func (suc *SmsUseCase) SendSmsVerifyCode(ctx context.Context, sendType int64, mobile string) (int64, int64, string, error)

Jump to

Keyboard shortcuts

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