model

package
v0.0.0-...-55040bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseVersion

type DatabaseVersion struct {
	Version uint32 `json:"version"`
}

type Exam

type Exam struct {
	Uuid        string `json:"uuid"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Icon        string `json:"icon"`
}

type Player

type Player struct {
	Uuid string `json:"uuid"`
	Name string `json:"name"`
	Lvl  uint64 `json:"lvl"`
}

type Question

type Question struct {
	Uuid          string   `json:"uuid"`
	Content       string   `json:"content"`
	HaveImage     bool     `json:"haveImage"`
	AnswerA       string   `json:"answerA"`
	AnswerB       string   `json:"answerB"`
	AnswerC       string   `json:"answerC"`
	AnswerD       string   `json:"answerD"`
	CorrectAnswer uint8    `json:"correctAnswer"`
	ExamUuids     []string `json:"examUuids"`
}

func (Question) IsEmpty

func (q Question) IsEmpty() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL