generated from VLADIMIR/template
21 lines
516 B
Go
21 lines
516 B
Go
package participation_service
|
|
|
|
import "evening_detective_server/internal/repos/teams_repo"
|
|
|
|
func mapParticipation(p *teams_repo.Participation) *Participation {
|
|
if p == nil {
|
|
return nil
|
|
}
|
|
return &Participation{
|
|
TeamID: p.TeamID,
|
|
TeamName: p.TeamName,
|
|
GameName: p.GameName,
|
|
StartAt: p.StartAt,
|
|
ParticipantsCount: p.ParticipantsCount,
|
|
Status: p.Status,
|
|
Closed: p.Closed,
|
|
Email: p.Email,
|
|
Attempts: p.Attempts,
|
|
}
|
|
}
|