2023-10-28 08:49:28 +02:00
|
|
|
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
|
2023-10-28 08:49:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type participantHTMLData struct {
|
|
|
|
SessionID uuid.UUID
|
2023-10-30 11:38:56 +01:00
|
|
|
BriefingParticipant
|
2023-10-28 08:49:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type questionHTMLData struct {
|
2023-10-30 11:38:56 +01:00
|
|
|
participantHTMLData
|
2023-10-28 08:49:28 +02:00
|
|
|
QuestionID int64
|
2023-11-01 09:18:48 +01:00
|
|
|
Question data.Question
|
2023-10-28 08:49:28 +02:00
|
|
|
}
|
|
|
|
|
2023-10-30 11:38:56 +01:00
|
|
|
type resultAnswer struct {
|
2023-10-28 08:49:28 +02:00
|
|
|
Text string
|
|
|
|
Correct bool
|
|
|
|
Chosen bool
|
|
|
|
}
|
|
|
|
|
2023-10-30 11:38:56 +01:00
|
|
|
type resultQuestion struct {
|
2023-10-28 08:49:28 +02:00
|
|
|
Text string
|
2023-10-30 11:38:56 +01:00
|
|
|
Answers []resultAnswer
|
2023-10-28 08:49:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type resultHTMLData struct {
|
2023-10-30 11:38:56 +01:00
|
|
|
participantHTMLData
|
|
|
|
Questions []resultQuestion
|
|
|
|
}
|
|
|
|
|
|
|
|
type summaryHTMLData struct {
|
|
|
|
SessionID uuid.UUID
|
|
|
|
ParticipantsData []participantHTMLData
|
2023-10-28 08:49:28 +02:00
|
|
|
}
|