add: player-rpc 增加按用户查询打手

This commit is contained in:
zetaloop
2026-04-04 02:42:52 +08:00
parent 98aac81b43
commit 85ce6a45c5
5 changed files with 106 additions and 0 deletions
@@ -70,6 +70,11 @@ func (s *PlayerServiceServer) GetPlayersById(ctx context.Context, in *pb.GetPlay
return l.GetPlayersById(in)
}
func (s *PlayerServiceServer) GetPlayerByUserId(ctx context.Context, in *pb.SearchPlayersReq) (*pb.GetPlayersByIdResp, error) {
l := logic.NewGetPlayerByUserIdLogic(ctx, s.svcCtx)
return l.GetPlayerByUserId(in)
}
func (s *PlayerServiceServer) SearchPlayers(ctx context.Context, in *pb.SearchPlayersReq) (*pb.SearchPlayersResp, error) {
l := logic.NewSearchPlayersLogic(ctx, s.svcCtx)
return l.SearchPlayers(in)