Documentation ¶
Index ¶
Constants ¶
View Source
const ( NormalType string = "normal" PuzzleType string = "puzzle" )
View Source
const ( StartedPhase string = "started" FinishedPhase string = "finished" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CourseDTO ¶
type CourseDTO struct { CourseID string `json:"id"` UserID uint `json:"userId"` Name string `json:"name" validate:"required"` Description string `json:"description"` Image string `json:"image"` Data []TaskDTO `json:"data,omitempty"` Language string `json:"language"` DifficultyLevel string `json:"difficultyLevel"` Rate float32 `json:"rate"` MaxPoints int `json:"maxPoints"` BestPoints int `json:"bestPoints"` Type string `json:"type" validate:"required"` }
type CourseResult ¶
type CourseResultDTO ¶
type UserDTO ¶
type UserDTO struct { Email string `json:"email" validate:"required,email,max=250"` FirstName string `json:"firstName" validate:"max=250"` LastName string `json:"lastName" validate:"max=250"` Password string `json:"password,omitempty" validate:"required,min=8,max=250"` Avatar string `json:"avatar"` Token string `json:"token"` RefreshToken string `json:"refreshToken"` ID int `json:"id"` Level int `json:"level"` NextLevel string `json:"nextLevel"` Points int `json:"points"` }
Click to show internal directories.
Click to hide internal directories.