generated from VLADIMIR/template
fix
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user