/* Options: Date: 2026-09-01 21:28:44 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryBookings.* //ExcludeTypes: //DefaultImports: */ package dtos import ( ss "github.com/ServiceStack/servicestack-go" "time" ) type RoomType string const ( RoomTypeSingle RoomType = "Single" RoomTypeDouble = "Double" RoomTypeQueen = "Queen" RoomTypeTwin = "Twin" RoomTypeSuite = "Suite" ) /** @description Discount Coupons */ type Coupon struct { Id string `json:"id"` Description string `json:"description"` Discount int `json:"discount,omitempty"` ExpiryDate time.Time `json:"expiryDate,omitempty"` } /** @description Booking Details */ type Booking struct { ss.AuditBase Id int `json:"id,omitempty"` Name string `json:"name"` RoomType RoomType `json:"roomType,omitempty"` RoomNumber int `json:"roomNumber,omitempty"` BookingStartDate time.Time `json:"bookingStartDate,omitempty"` BookingEndDate *time.Time `json:"bookingEndDate,omitempty"` Cost float64 `json:"cost,omitempty"` // @References("typeof(MyApp.ServiceModel.Coupon)") CouponId *string `json:"couponId,omitempty"` Discount Coupon `json:"discount"` Notes *string `json:"notes,omitempty"` Cancelled *bool `json:"cancelled,omitempty"` } /** @description Find Bookings */ // @Route("/bookings", "GET") // @Route("/bookings/{Id}", "GET") type QueryBookings struct { ss.QueryDb Id *int `json:"id,omitempty"` } func (QueryBookings) CreateResponse() (r ss.QueryResponse[Booking]) { return } func (QueryBookings) HttpMethod() string { return "GET" }