Reihenfolge innerhalb der structs so verändert, dass möglichst wenige Pointerbytes verwendet werden.
This commit is contained in:
@ -17,27 +17,27 @@ import (
|
||||
)
|
||||
|
||||
type tableHTMLData struct {
|
||||
SessionID uuid.UUID
|
||||
OTD []data.OverviewTableData
|
||||
SessionID uuid.UUID
|
||||
}
|
||||
|
||||
type participantHTMLData struct {
|
||||
BriefingID uuid.UUID
|
||||
Participant
|
||||
BriefingID uuid.UUID
|
||||
}
|
||||
|
||||
type questionHTMLData struct {
|
||||
Question data.Question
|
||||
participantHTMLData
|
||||
QuestionID int64
|
||||
Question data.Question
|
||||
}
|
||||
|
||||
type resultAnswer struct {
|
||||
ID int64
|
||||
Text string
|
||||
Correct bool
|
||||
Chosen bool
|
||||
IsImage bool // TODO: relocate to sessionStructs if possible
|
||||
ID int64
|
||||
}
|
||||
|
||||
type resultQuestion struct {
|
||||
@ -46,12 +46,12 @@ type resultQuestion struct {
|
||||
}
|
||||
|
||||
type resultHTMLData struct {
|
||||
participantHTMLData
|
||||
Questions []resultQuestion
|
||||
participantHTMLData
|
||||
}
|
||||
|
||||
type summaryHTMLData struct {
|
||||
ParticipantsData []participantHTMLData
|
||||
SessionID uuid.UUID
|
||||
BriefingID uuid.UUID
|
||||
ParticipantsData []participantHTMLData
|
||||
}
|
||||
|
Reference in New Issue
Block a user