mirror of
https://github.com/Walter-Sparrow/lunar-tear.git
synced 2026-07-02 13:53:41 +03:00
27 lines
704 B
Go
27 lines
704 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
"log"
|
|
|
|
pb "lunar-tear/server/gen/proto"
|
|
)
|
|
|
|
type GameplayServiceServer struct {
|
|
pb.UnimplementedGamePlayServiceServer
|
|
}
|
|
|
|
func NewGameplayServiceServer() *GameplayServiceServer {
|
|
return &GameplayServiceServer{}
|
|
}
|
|
|
|
func (s *GameplayServiceServer) CheckBeforeGamePlay(ctx context.Context, req *pb.CheckBeforeGamePlayRequest) (*pb.CheckBeforeGamePlayResponse, error) {
|
|
log.Printf("[GamePlayService] CheckBeforeGamePlay: tr=%s voiceLang=%d textLang=%d",
|
|
req.Tr, req.VoiceClientSystemLanguageTypeId, req.TextClientSystemLanguageTypeId)
|
|
|
|
return &pb.CheckBeforeGamePlayResponse{
|
|
IsExistUnreadPop: false,
|
|
MenuGachaBadgeInfo: []*pb.MenuGachaBadgeInfo{},
|
|
}, nil
|
|
}
|