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
+3 -3
View File
@@ -4,12 +4,12 @@ import (
"evening_detective_server/internal/modules/game_model"
"testing"
"evening_detective_server/internal/services/game_service"
"evening_detective_server/internal/services/answer_service"
)
func TestMapTeamResults(t *testing.T) {
sc := 5
results := []game_service.TeamResult{
results := []answer_service.TeamResult{
{
Team: &game_model.Team{
ID: 1,
@@ -17,7 +17,7 @@ func TestMapTeamResults(t *testing.T) {
Status: "play",
ActionsCount: 7,
},
Answers: []game_service.AnswerScore{
Answers: []answer_service.AnswerScore{
{QuestionCode: "q1", Text: "ответ", Score: &sc},
},
TotalScore: 5,