model

package
v0.0.0-...-023eac5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DateFormat = "01/02/2006"

day/month/year

Variables

This section is empty.

Functions

This section is empty.

Types

type Booking

type Booking struct {
	Id        int       `json:"booking_id" db:"id"`
	RoomId    int       `json:"-" db:"room_id"`
	DateStart time.Time `json:"date_start" db:"date_start"`
	DateEnd   time.Time `json:"date_end" db:"date_end"`
}

func (*Booking) MarshalJSON

func (b *Booking) MarshalJSON() ([]byte, error)

func (*Booking) UnmarshalJSON

func (b *Booking) UnmarshalJSON(data []byte) error

type Room

type Room struct {
	Id          int    `json:"room_id" db:"id"`
	Description string `json:"description" db:"description"`
	Price       int    `json:"price" db:"price"`
}

Jump to

Keyboard shortcuts

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