generated from VLADIMIR/template
31 lines
991 B
Go
31 lines
991 B
Go
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
|
|
}
|