generated from VLADIMIR/template
add mcp label
This commit is contained in:
@@ -1098,7 +1098,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, err := s.gameService.GetTeamActions(
|
||||
story, game, actions, err := s.gameService.GetTeamActions(
|
||||
ctx,
|
||||
int(req.Id),
|
||||
req.Password,
|
||||
@@ -1108,10 +1108,15 @@ func (s *server) GetTeamStory(ctx context.Context, req *proto.GetTeamStoryReq) (
|
||||
Error: err.Error(),
|
||||
}, nil
|
||||
}
|
||||
protoActions := make([]*proto.TeamAction, 0, len(actions))
|
||||
for _, action := range actions {
|
||||
protoActions = append(protoActions, &proto.TeamAction{Code: action.Code, Mcp: action.ViaMCP})
|
||||
}
|
||||
|
||||
return &proto.GetTeamStoryRsp{
|
||||
Story: mapStory(story),
|
||||
Game: mapGame(game),
|
||||
Story: mapStory(story),
|
||||
Game: mapGame(game),
|
||||
Actions: protoActions,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user