Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSmsCode = errors.InternalServer("ERROR", "Sms Code ERROR")
)
View Source
var ProviderSet = wire.NewSet(NewSmsUseCase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type SmsUseCase ¶
type SmsUseCase struct {
// contains filtered or unexported fields
}
func NewSmsUseCase ¶
func NewSmsUseCase(repo SmsRepo, logger log.Logger) *SmsUseCase
func (*SmsUseCase) SendCode ¶
func (uc *SmsUseCase) SendCode(ctx context.Context, mobile string) error
func (*SmsUseCase) VerifyCode ¶
func (uc *SmsUseCase) VerifyCode(ctx context.Context, mobile, code string) error
Click to show internal directories.
Click to hide internal directories.