Documentation
¶
Index ¶
Constants ¶
View Source
const ( DATE_FORMAT = "Jan _2, 2006" SQL_DATE_FORMAT = "2006-01-02" )
Variables ¶
This section is empty.
Functions ¶
func ValidatePassword ¶
func ValidatePassword(v *revel.Validation, password string) *revel.ValidationResult
Types ¶
type Booking ¶
type Booking struct {
BookingId int
UserId int
HotelId int
CheckInStr string
CheckOutStr string
CardNumber string
NameOnCard string
CardExpMonth int
CardExpYear int
Smoking bool
Beds int
// Transient
CheckInDate time.Time
CheckOutDate time.Time
User *User
Hotel *Hotel
}
func (Booking) Description ¶
func (Booking) Validate ¶
func (booking Booking) Validate(v *revel.Validation)
TODO: Make an interface for Validate() and then validation can pass in the key prefix ("booking.")
Click to show internal directories.
Click to hide internal directories.