This commit is contained in:
2026-10-03 13:00:50 +07:00
parent dd55079e06
commit 7a7808b4d1
28 changed files with 191 additions and 11 deletions
+1
View File
@@ -6,6 +6,7 @@ import (
"time"
)
// Game describes a game exposed by the service layer.
type Game struct {
Format string
ID int
@@ -5,6 +5,7 @@ import (
"evening_detective_server/internal/services/scenarios_service"
)
// MapGame converts a repository game to a service model.
func MapGame(
o *repos.Game,
domain string,
@@ -24,6 +25,7 @@ func MapGame(
}
}
// MapGames converts repository games to service models.
func MapGames(
o []*repos.Game,
domain string,
+1
View File
@@ -2,6 +2,7 @@ package game_model
import "evening_detective_server/internal/modules/storytelling"
// Team describes a team exposed by the service layer.
type Team struct {
ParticipationStatus string
ParticipationSource string
@@ -2,6 +2,7 @@ package game_model
import "evening_detective_server/internal/repos"
// MapTeam converts a repository team to a service model.
func MapTeam(
o *repos.Team,
) *Team {
@@ -19,6 +20,7 @@ func MapTeam(
}
}
// MapTeams converts repository teams to service models.
func MapTeams(
o []*repos.Team,
) []*Team {