Fix(booking-controller): Fixed fetching of bookings
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
This commit is contained in:
@@ -40,15 +40,15 @@ type BookingCreateRequest struct {
|
||||
|
||||
type BookingResponse struct {
|
||||
ID uuid.UUID `json:"id"`
|
||||
TravelDate time.Time `json:"travelDate"`
|
||||
TimeCode string `json:"timeCode"`
|
||||
TravelDate time.Time `json:"travelDate" swaggertype:"string" format:"date-time"`
|
||||
TimeCode string `json:"timeCode" swaggertype:"string" example:"1300"`
|
||||
Name string `json:"name"`
|
||||
Gender string `json:"gender"`
|
||||
Gender string `json:"gender" swaggertype:"string" example:"M" enum:"M,F"`
|
||||
Passport string `json:"passport"`
|
||||
PassportExpiry time.Time `json:"passportExpiry"`
|
||||
Contact string `json:"contact"`
|
||||
PassportExpiry time.Time `json:"passportExpiry" swaggertype:"string" format:"date-time"`
|
||||
Contact string `json:"contact" swaggertype:"string" example:"+6512345678"`
|
||||
Status string `json:"status"`
|
||||
BackToSg bool `json:"backToSg" validate:"required"`
|
||||
BackToSg bool `json:"backToSg" validate:"required" example:"false"`
|
||||
}
|
||||
|
||||
type BookingListResponse []BookingResponse
|
||||
|
||||
Reference in New Issue
Block a user