generated from VLADIMIR/template
add AnswerService
This commit is contained in:
@@ -2,7 +2,7 @@ package app
|
||||
|
||||
import (
|
||||
"evening_detective_server/internal/modules/storytelling"
|
||||
"evening_detective_server/internal/services/game_service"
|
||||
"evening_detective_server/internal/services/answer_service"
|
||||
proto "evening_detective_server/proto"
|
||||
)
|
||||
|
||||
@@ -23,7 +23,7 @@ func mapResultsQuestions(o []*storytelling.Question) []*proto.ResultsQuestion {
|
||||
// mapTeamResults мапит строки итоговой таблицы. Команда мапится целиком
|
||||
// (включая password/applications — аудитория та же, что у GetGameAnswers:
|
||||
// организатор/автор); actionsCount продублирован на уровне строки таблицы.
|
||||
func mapTeamResults(o []game_service.TeamResult) []*proto.TeamResult {
|
||||
func mapTeamResults(o []answer_service.TeamResult) []*proto.TeamResult {
|
||||
res := make([]*proto.TeamResult, 0, len(o))
|
||||
for _, item := range o {
|
||||
res = append(res, &proto.TeamResult{
|
||||
|
||||
Reference in New Issue
Block a user