types

package
v0.0.0-...-5ac18db Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	IdCat int
	Nome  string
}

type Cicerone

type Cicerone struct {
	Globetrotter
	CodFis string
	Tel    int
	Iban   string
}

func (Cicerone) GetId

func (c Cicerone) GetId() int

func (Cicerone) IsCicerone

func (c Cicerone) IsCicerone() bool

type Citta

type Citta struct {
	IdCitta   int
	NomeCitta string
	Cap       []int
}

type Context

type Context struct {
	Events     []MiniEvento //using
	Event      Evento
	Utente     interface{} //using
	CSRFToken  string
	Referer    string
	IsCicerone bool
	City       []Citta
	Category   []Category
}

Context is the struct passed to templates

type Evento

type Evento struct {
	IdEvento         int
	Creatore         int
	Citta            int
	DataInizio       int64
	DataFine         int64
	Titolo           string
	Descrizione      string
	Itinerario       string
	MinPart          int
	MaxPart          int
	Costo            int
	Indirizzo        string
	DataScadenzaPren int64
	Categoria        string
	Lingue           int
	Prenotazioni     []int
}

type Globetrotter

type Globetrotter struct {
	IdUtente    int
	Nome        string
	Cognome     string
	Sesso       string
	DataNascita int64
	Email       string
	Password    string
}

func (Globetrotter) GetId

func (g Globetrotter) GetId() int

func (Globetrotter) IsCicerone

func (g Globetrotter) IsCicerone() bool

type Lingua

type Lingua struct {
	IdLingua   int
	NomeLingua string
}

type MiniEvento

type MiniEvento struct {
	IdEvento    int
	Titolo      string
	Descrizione string
}

type Prenotazioni

type Prenotazioni struct {
	IdPrenotazione   int
	Utente           int
	DataPrenotazione int64
	Accettazione     bool
}

type Provincia

type Provincia struct {
	IdProvincia   int
	NomeProvincia string
	Citta         []*Citta
}

type Regione

type Regione struct {
	IdRegione   int
	NomeRegione string
	Province    []*Provincia //contiene gli id delle province
}

type User

type User interface {
	IsCicerone() bool
	GetId() int
}

Jump to

Keyboard shortcuts

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