generated from VLADIMIR/template
updates proto
This commit is contained in:
@@ -22,7 +22,7 @@ func (s *server) AddTeam(ctx context.Context, req *proto.AddTeamReq) (*proto.Add
|
||||
team, err := s.teamService.AddTeam(
|
||||
ctx,
|
||||
claims.UserID,
|
||||
int(req.GameId),
|
||||
int(req.GameID),
|
||||
req.Name,
|
||||
req.CaptainEmail,
|
||||
)
|
||||
@@ -33,7 +33,7 @@ func (s *server) AddTeam(ctx context.Context, req *proto.AddTeamReq) (*proto.Add
|
||||
}
|
||||
|
||||
return &proto.AddTeamRsp{
|
||||
Id: int32(team.ID),
|
||||
ID: int32(team.ID),
|
||||
Password: team.Password,
|
||||
}, nil
|
||||
}
|
||||
@@ -49,7 +49,7 @@ func (s *server) UpdateTeam(ctx context.Context, req *proto.UpdateTeamReq) (*pro
|
||||
|
||||
err := s.teamService.UpdateTeam(
|
||||
ctx,
|
||||
int(req.Id),
|
||||
int(req.ID),
|
||||
req.Name,
|
||||
)
|
||||
if err != nil {
|
||||
@@ -72,7 +72,7 @@ func (s *server) DeleteTeam(ctx context.Context, req *proto.DeleteTeamReq) (*pro
|
||||
|
||||
err := s.teamService.DeleteTeam(
|
||||
ctx,
|
||||
int(req.Id),
|
||||
int(req.ID),
|
||||
)
|
||||
if err != nil {
|
||||
return &proto.DeleteTeamRsp{
|
||||
@@ -94,7 +94,7 @@ func (s *server) GiveTeamApplications(ctx context.Context, req *proto.GiveTeamAp
|
||||
|
||||
err := s.gameplayService.GiveTeamApplications(
|
||||
ctx,
|
||||
int(req.Id),
|
||||
int(req.ID),
|
||||
req.Name,
|
||||
)
|
||||
if err != nil {
|
||||
@@ -109,7 +109,7 @@ func (s *server) GiveTeamApplications(ctx context.Context, req *proto.GiveTeamAp
|
||||
func (s *server) GetTeamStory(ctx context.Context, req *proto.GetTeamStoryReq) (*proto.GetTeamStoryRsp, error) {
|
||||
story, game, actions, err := s.gameplayService.GetTeamActions(
|
||||
ctx,
|
||||
int(req.Id),
|
||||
int(req.ID),
|
||||
req.Password,
|
||||
)
|
||||
if err != nil {
|
||||
@@ -132,7 +132,7 @@ func (s *server) GetTeamStory(ctx context.Context, req *proto.GetTeamStoryReq) (
|
||||
func (s *server) AddTeamAction(ctx context.Context, req *proto.AddTeamActionReq) (*proto.AddTeamActionRsp, error) {
|
||||
err := s.gameplayService.AddTeamAction(
|
||||
ctx,
|
||||
int(req.Id),
|
||||
int(req.ID),
|
||||
req.Password,
|
||||
req.Code,
|
||||
false,
|
||||
@@ -157,7 +157,7 @@ func (s *server) DeleteLastTeamAction(ctx context.Context, req *proto.DeleteLast
|
||||
|
||||
err := s.gameplayService.DeleteLastTeamAction(
|
||||
ctx,
|
||||
int(req.Id),
|
||||
int(req.ID),
|
||||
)
|
||||
if err != nil {
|
||||
return &proto.DeleteLastTeamActionRsp{
|
||||
|
||||
Reference in New Issue
Block a user