21 lines
426 B
Go
21 lines
426 B
Go
|
|
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||
|
|
package server
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"git.apinb.com/bsm-apps/sender/internal/logic/mail"
|
||
|
|
pb "git.apinb.com/bsm-apps/sender/pb"
|
||
|
|
)
|
||
|
|
|
||
|
|
type MailServer struct {
|
||
|
|
pb.UnimplementedMailServer
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewMailServer() *MailServer {
|
||
|
|
return &MailServer{}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (s *MailServer) Send(ctx context.Context, in *pb.SendMailRequest) (*pb.SendMailReply, error) {
|
||
|
|
return mail.Send(ctx, in)
|
||
|
|
}
|