generated from VLADIMIR/template
add team service
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"evening_detective_server/internal/services/game_service"
|
||||
"evening_detective_server/internal/modules/game_model"
|
||||
"evening_detective_server/proto"
|
||||
)
|
||||
|
||||
func mapTeam(
|
||||
o *game_service.Team,
|
||||
o *game_model.Team,
|
||||
) *proto.Team {
|
||||
return &proto.Team{
|
||||
Id: int32(o.ID),
|
||||
@@ -18,7 +18,7 @@ func mapTeam(
|
||||
}
|
||||
}
|
||||
|
||||
func mapTeamDetails(o *game_service.Team) *proto.Team {
|
||||
func mapTeamDetails(o *game_model.Team) *proto.Team {
|
||||
team := mapTeam(o)
|
||||
team.ParticipationStatus = o.ParticipationStatus
|
||||
team.ParticipationSource = o.ParticipationSource
|
||||
@@ -30,7 +30,7 @@ func mapTeamDetails(o *game_service.Team) *proto.Team {
|
||||
}
|
||||
|
||||
func mapTeams(
|
||||
o []*game_service.Team,
|
||||
o []*game_model.Team,
|
||||
) []*proto.Team {
|
||||
res := make([]*proto.Team, 0, len(o))
|
||||
for _, item := range o {
|
||||
|
||||
Reference in New Issue
Block a user