Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginInput ¶
type LoginInput struct { Email string `json:"email" validate:"required,email" example:"example@mail.com"` Password string `json:"password" validate:"required,password" example:"password123"` }
LoginInput struct to hold the input for login @Description LoginInput struct to hold the input for login @Param email body string true "Email" @Param password body string true "Password"
type PreRegistrationInput ¶
type PreRegistrationInput struct { Name string `json:"name" validate:"required,name" example:"John Doe"` Email string `json:"email" validate:"required,email" example:"example@mail.com"` DateOfBirth string `json:"date_of_birth" example:"1990-01-01"` PhoneNumber string `json:"phone_number" example:"08123456789"` Password string `json:"password" validate:"required,password" example:"password123"` }
PreRegistrationInput struct to hold the input for pre-registration @Description PreRegistrationInput struct to hold the input for pre-registration @Param name body string true "Name" @Param email body string true "Email" @Param date_of_birth body string "Date of birth" @Param phone_number body string "Phone number" @Param password body string true "Password"
type VerifyOTPInput ¶
type VerifyOTPInput struct { Email string `json:"email" validate:"required,email" example:"example@mail.com"` OTP string `json:"otp" validate:"required" example:"123456"` }
VerifyOTPInput struct to hold the input for verifying OTP @Description VerifyOTPInput struct to hold the input for verifying OTP @Param email body string true "Email" @Param otp body string true "OTP"