generated from VLADIMIR/template
34 lines
1.0 KiB
Go
34 lines
1.0 KiB
Go
package game_service
|
|
|
|
import (
|
|
"evening_detective_server/internal/modules/game_model"
|
|
"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 *game_model.Team
|
|
Answers []AnswerScore
|
|
}
|
|
|
|
// GameAnswers — полная картина для оценки организатором: вопросы сценария
|
|
// (с правильными ответами) и ответы всех команд с баллами.
|
|
type GameAnswers struct {
|
|
Questions []*storytelling.Question
|
|
Teams []TeamAnswers
|
|
}
|