You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
589 B

package service
import (
"context"
"bkb-recommend/api"
"bkb-recommend/internal/biz"
)
// GreeterService is a greeter service.
type GreeterService struct {
api.UnimplementedRecommenderServer
uc *biz.GreeterUsecase
}
// NewGreeterService new a greeter service.
func NewGreeterService(uc *biz.GreeterUsecase) *GreeterService {
return &GreeterService{uc: uc}
}
// SayHello implements helloworld.GreeterServer.
func (s *GreeterService) Ping(ctx context.Context, in *api.PingRequest) (*api.PingReply, error) {
return &api.PingReply{Message: in.Name + " Hello Bkb recommend"}, nil
}