add AnswerService

This commit is contained in:
2026-09-17 02:38:05 +07:00
parent c70d839038
commit 87bd07019a
18 changed files with 448 additions and 304 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ package app
import (
"evening_detective_server/internal/modules/storytelling"
"evening_detective_server/internal/services/game_service"
"evening_detective_server/internal/services/answer_service"
proto "evening_detective_server/proto"
)
@@ -23,7 +23,7 @@ func mapResultsQuestions(o []*storytelling.Question) []*proto.ResultsQuestion {
// mapTeamResults мапит строки итоговой таблицы. Команда мапится целиком
// (включая password/applications — аудитория та же, что у GetGameAnswers:
// организатор/автор); actionsCount продублирован на уровне строки таблицы.
func mapTeamResults(o []game_service.TeamResult) []*proto.TeamResult {
func mapTeamResults(o []answer_service.TeamResult) []*proto.TeamResult {
res := make([]*proto.TeamResult, 0, len(o))
for _, item := range o {
res = append(res, &proto.TeamResult{