models

package
v0.0.0-...-89c1f6e Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RolePlayer     = "PLAYER"
	RoleJury       = "JURY"
	RoleOrganizer  = "ORGANIZER"
	RoleSpecialist = "SPECIALIST"
)

Variables

Functions

This section is empty.

Types

type TeamDTO

type TeamDTO struct {
	ID   string `json:"id" bson:"_id" validate:"omitempty"`
	Name string `json:"name" bson:"name" validate:"required"`
}

TeamDTO команда

type UserDTO

type UserDTO struct {
	Lastname  string  `json:"lastname"`
	Firstname string  `json:"firstname"`
	Role      string  `json:"role"`
	Telegram  string  `json:"telegram"`
	Team      TeamDTO `json:"team"`
}

Jump to

Keyboard shortcuts

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