12 lines
542 B
Go
12 lines
542 B
Go
package usecase
|
|
|
|
import "context"
|
|
|
|
// VerificationUseCase composes OTP + Notifier for business email/phone verification.
|
|
type VerificationUseCase interface {
|
|
StartEmailVerify(ctx context.Context, tenantID, uid, target, locale string) (*OTPChallengeDTO, error)
|
|
ConfirmEmailVerify(ctx context.Context, tenantID, uid, challengeID, code string) error
|
|
StartPhoneVerify(ctx context.Context, tenantID, uid, target, locale string) (*OTPChallengeDTO, error)
|
|
ConfirmPhoneVerify(ctx context.Context, tenantID, uid, challengeID, code string) error
|
|
}
|