models

package
v0.0.0-...-03f4135 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddGuestData

type AddGuestData struct {
	Header s.HeaderData
	Guest  []FullGuestData
}

func AddGuest

func AddGuest() AddGuestData

type AllGuestData

type AllGuestData struct {
	Header    s.HeaderData
	GuestInfo []FullGuestData
}

func Guest

func Guest() AllGuestData

type AreaData

type AreaData struct {
	Id   int
	Name string
}

type BookingData

type BookingData struct {
	HotelId     int
	Hotel       string
	CityId      int
	City        string
	AreaId      int
	Area        string
	RoomId      int
	RoomNumber  int
	RoomTypeId  int
	RoomType    string
	Price       int
	Status      bool
	ContactId   int
	ArrivalDate time.Time
	Year        int
	Month       time.Month
	Day         int
	Term        int
	Target      string
}

type CityData

type CityData struct {
	Id   int
	Name string
}

type ContractData

type ContractData struct {
	Header  s.HeaderData
	Booking []BookingData
	Cities  []CityData
	Areas   []AreaData
	Types   []TypeData
}

func Contract

func Contract() ContractData

type FullGuestData

type FullGuestData struct {
	Id       int
	Fio      string
	Passport int
	Birthday pgtype.Date
	Year     int
	Month    time.Month
	Day      int
}

type OrderData

type OrderData struct {
	Header    s.HeaderData
	GuestInfo []FullGuestData
}

func Order

func Order() OrderData

type RoomData

type RoomData struct {
	HotelId    int
	Hotel      string
	CityId     int
	City       string
	AreaId     int
	Area       string
	RoomId     int
	RoomNumber int
	RoomTypeId int
	RoomType   string
	Price      int
	Status     bool
}

type TypeData

type TypeData struct {
	Id   int
	Name string
}

type ViewData

type ViewData struct {
	Header s.HeaderData
	Room   []RoomData
	Cities []CityData
	Areas  []AreaData
	Types  []TypeData
}

func Index

func Index() ViewData

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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