add questions

This commit is contained in:
2026-09-01 01:01:37 +07:00
parent 4431a4d491
commit 69666ee264
23 changed files with 4151 additions and 368 deletions
+30
View File
@@ -0,0 +1,30 @@
package game_service
import "evening_detective_server/internal/modules/storytelling"
// Answer — ответ команды на вопрос дела (для публичного API команды).
type Answer struct {
QuestionCode string
Text string
}
// AnswerScore — ответ команды с баллом организатора (для панели оценки).
type AnswerScore struct {
QuestionCode string
Text string
// Score — балл; nil — ещё не оценено.
Score *int
}
// TeamAnswers — ответы одной команды игры.
type TeamAnswers struct {
Team *Team
Answers []AnswerScore
}
// GameAnswers — полная картина для оценки организатором: вопросы сценария
// (с правильными ответами) и ответы всех команд с баллами.
type GameAnswers struct {
Questions []*storytelling.Question
Teams []TeamAnswers
}