47 lines
724 B
Go

package session
import (
"github.com/google/uuid"
"streifling.com/jason/sicherheitsunterweisung/packages/data"
)
type tableHTMLData struct {
SessionID uuid.UUID
OTD []data.OverviewTableData
}
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
}