32 lines
798 B
Go
32 lines
798 B
Go
|
package rpc_service
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"fmt"
|
||
|
"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/dal"
|
||
|
"penahub.gitlab.yandexcloud.net/backend/quiz/core.git/proto/notifyer"
|
||
|
)
|
||
|
|
||
|
type MailNotify struct {
|
||
|
notifyer.UnimplementedQuizServiceServer
|
||
|
dal *dal.DAL
|
||
|
}
|
||
|
|
||
|
func NewMailNotify(dal *dal.DAL) *MailNotify {
|
||
|
return &MailNotify{
|
||
|
dal: dal,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (m *MailNotify) GetQuizzes(ctx context.Context, in *notifyer.GetQuizzesRequest) (*notifyer.GetQuizzesResponse, error) {
|
||
|
fmt.Println(in)
|
||
|
fmt.Println("AAAAAAAAAAAAAAAAaaa GetQuizzes")
|
||
|
return nil, nil
|
||
|
}
|
||
|
|
||
|
func (m *MailNotify) GetStartedQuizzes(ctx context.Context, in *notifyer.GetStartedQuizzesRequest) (*notifyer.GetStartedQuizzesResponse, error) {
|
||
|
fmt.Println(in)
|
||
|
fmt.Println("AAAAAAAAAAAAAAAAaaa GetStartedQuizzes")
|
||
|
return nil, nil
|
||
|
}
|