44 lines
710 B
Go
Raw Normal View History

package session
import (
"github.com/google/uuid"
"streifling.com/jason/sicherheitsunterweisung/packages/data"
)
2023-10-28 10:52:06 +02:00
type tableHTMLData struct {
SessionID uuid.UUID
OTD []data.OverviewTableData
}
type participantHTMLData struct {
SessionID uuid.UUID
2023-10-30 11:38:56 +01:00
BriefingParticipant
}
type questionHTMLData struct {
2023-10-30 11:38:56 +01:00
participantHTMLData
QuestionID int64
Question data.Question
}
2023-10-30 11:38:56 +01:00
type resultAnswer struct {
Text string
Correct bool
Chosen bool
}
2023-10-30 11:38:56 +01:00
type resultQuestion struct {
Text string
2023-10-30 11:38:56 +01:00
Answers []resultAnswer
}
type resultHTMLData struct {
2023-10-30 11:38:56 +01:00
participantHTMLData
Questions []resultQuestion
}
type summaryHTMLData struct {
SessionID uuid.UUID
ParticipantsData []participantHTMLData
}