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 briefingHTMLData struct {
|
|
|
|
SessionID uuid.UUID
|
|
|
|
Login string
|
|
|
|
}
|
|
|
|
|
|
|
|
type participantHTMLData struct {
|
|
|
|
SessionID uuid.UUID
|
|
|
|
Login string
|
|
|
|
}
|
|
|
|
|
|
|
|
type questionHTMLData struct {
|
|
|
|
SessionID uuid.UUID
|
|
|
|
Login string
|
|
|
|
Question data.Question
|
|
|
|
QuestionID int64
|
|
|
|
}
|
|
|
|
|
|
|
|
type htmlAnswer struct {
|
|
|
|
Text string
|
|
|
|
Correct bool
|
|
|
|
Chosen bool
|
|
|
|
}
|
|
|
|
|
|
|
|
type htmlQuestion struct {
|
|
|
|
Text string
|
|
|
|
Answers []htmlAnswer
|
|
|
|
}
|
|
|
|
|
|
|
|
type resultHTMLData struct {
|
|
|
|
SessionID uuid.UUID
|
|
|
|
Login string
|
|
|
|
Questions []htmlQuestion
|
|
|
|
Incorrect int
|
|
|
|
}
|