daanishgoyal / myLearningPlace

SE Group Project- We would like to create a marketplace platform that connects customers with service providers. Mainly, this platform is for services related non – technical and extra curricular activities like Yoga, Music, and Signing etc. For example, a person from Gainesville wants to learn Yoga online. So, after logining into our system the person mentions their preferable timings and the price range they are willing to spend willing to pay on hourly basis.
0 stars 4 forks source link

Being able to book an appointment #10

Closed pathak-aman closed 2 years ago

pathak-aman commented 2 years ago

I would want to book an appointment so that I can learn.

pathak-aman commented 2 years ago

Created the model for booking. //File: Booking.go //Branch: backend_booking_appointment

pathak-aman commented 2 years ago

Created a controller that creates a booking for a given teacherId, userId, slotId, skillId. In the DB, it also stores the date of appointment which is calculated from the slot chosen for the appointment.

// File: controllers/createBooking.go // Route: "/api/booking/create"