This commit is contained in:
2026-10-03 13:22:11 +07:00
parent 05090722a0
commit 2caa2c1a88
74 changed files with 44 additions and 676 deletions
-6
View File
@@ -6,9 +6,6 @@ import (
proto "evening_detective_server/proto"
)
// mapResultsQuestions мапит вопросы сценария в шапку итоговой таблицы:
// правильный ответ (поле Answer) не передаётся — он виден только в панели
// оценки (GetGameAnswers).
func mapResultsQuestions(o []*storytelling.Question) []*proto.ResultsQuestion {
res := make([]*proto.ResultsQuestion, 0, len(o))
for _, item := range o {
@@ -20,9 +17,6 @@ func mapResultsQuestions(o []*storytelling.Question) []*proto.ResultsQuestion {
return res
}
// mapTeamResults мапит строки итоговой таблицы. Команда мапится целиком
// (включая password/applications — аудитория та же, что у GetGameAnswers:
// организатор/автор); actionsCount продублирован на уровне строки таблицы.
func mapTeamResults(o []answer_service.TeamResult) []*proto.TeamResult {
res := make([]*proto.TeamResult, 0, len(o))
for _, item := range o {