Documentation ¶
Index ¶
- Variables
- type NotificationService
- func (s *NotificationService) SendEmail(ctx context.Context, req *v1.SendEmailReq) (*v1.SendEmailReply, error)
- func (s *NotificationService) SendSms(ctx context.Context, req *v1.SendSmsReq) (*v1.SendSmsReply, error)
- func (s *NotificationService) SendSmsVerifyCode(ctx context.Context, req *v1.SendSmsVerifyCodeReq) (*v1.SendSmsVerifyCodeReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewNotificationService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type NotificationService ¶
type NotificationService struct { v1.UnimplementedNotificationServiceServer // contains filtered or unexported fields }
func NewNotificationService ¶
func NewNotificationService(smsUC *biz.SmsUseCase, emailUc *biz.EmailUseCase, logger log.Logger) *NotificationService
func (*NotificationService) SendEmail ¶
func (s *NotificationService) SendEmail(ctx context.Context, req *v1.SendEmailReq) (*v1.SendEmailReply, error)
func (*NotificationService) SendSms ¶
func (s *NotificationService) SendSms(ctx context.Context, req *v1.SendSmsReq) (*v1.SendSmsReply, error)
func (*NotificationService) SendSmsVerifyCode ¶
func (s *NotificationService) SendSmsVerifyCode(ctx context.Context, req *v1.SendSmsVerifyCodeReq) (*v1.SendSmsVerifyCodeReply, error)
Click to show internal directories.
Click to hide internal directories.