Fix(booking-controller): Fixed fetching of bookings
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good

This commit is contained in:
2022-09-27 20:29:46 +08:00
parent 51b539fe7a
commit 0ea75f6211
6 changed files with 61 additions and 31 deletions

View File

@@ -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