Files
evening_detective_server/internal/services/participation_service/mapper.go
T
2026-10-02 01:06:19 +07:00

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,
}
}