Documentation ¶
Index ¶
- Variables
- func AccpetOrderByDriver(c *gin.Context)
- func AddMenuImages(c *gin.Context)
- func AssignOrderToDriver(c *gin.Context)
- func CancelOrder(c *gin.Context)
- func ChangeCustomerDevice(c *gin.Context)
- func ChangeCustomerEmail(c *gin.Context)
- func ChangeCustomerPassword(c *gin.Context)
- func ChangeCustomerProfile(c *gin.Context)
- func ChangeCustomerWebhooks(c *gin.Context)
- func ChangeDriverDevice(c *gin.Context)
- func ChangeDriverEmail(c *gin.Context)
- func ChangeDriverLocation(c *gin.Context)
- func ChangeDriverPassword(c *gin.Context)
- func ChangeDriverPhone(c *gin.Context)
- func ChangeDriverProfile(c *gin.Context)
- func ChangeDriverWebhooks(c *gin.Context)
- func ChangeMerchantDevice(c *gin.Context)
- func ChangeMerchantPassword(c *gin.Context)
- func ChangeMerchantPhone(c *gin.Context)
- func ChangeMerchantProfile(c *gin.Context)
- func ChangeMerchantWebhooks(c *gin.Context)
- func ChangeOrderStatus(stage string) gin.HandlerFunc
- func CompleteSignUp(c *gin.Context)
- func CreateMenu(c *gin.Context)
- func CreateReview(c *gin.Context)
- func CustomerEmailLogin(c *gin.Context)
- func DeleteCustomer(c *gin.Context)
- func DeleteDriver(c *gin.Context)
- func DeleteMenu(c *gin.Context)
- func DeleteMerchant(c *gin.Context)
- func DeleteReview(c *gin.Context)
- func DriverEmailLogin(c *gin.Context)
- func DropOrderByDriver(c *gin.Context)
- func FilterMerchants(c *gin.Context)
- func GetAllCustomers(c *gin.Context)
- func GetAllDrivers(c *gin.Context)
- func GetAllMerchants(c *gin.Context)
- func GetAllOrders(c *gin.Context)
- func GetAllReview(c *gin.Context)
- func GetCustomer(c *gin.Context)
- func GetDriver(c *gin.Context)
- func GetDrivesByLocation(c *gin.Context)
- func GetListDrivers(c *gin.Context)
- func GetMenu(c *gin.Context)
- func GetMenuFromMerchant(c *gin.Context)
- func GetMenus(c *gin.Context)
- func GetMerchant(c *gin.Context)
- func GetMerchantByLocation(c *gin.Context)
- func GetOrderByCustomer(c *gin.Context)
- func GetOrderByDriver(c *gin.Context)
- func GetOrderByLocation(c *gin.Context)
- func GetOrderByMerchant(c *gin.Context)
- func GetOrderByid(c *gin.Context)
- func GetReviewById(c *gin.Context)
- func GetReviewToInstace(Type string) gin.HandlerFunc
- func GetUserReviews(c *gin.Context)
- func GoogleCallBack(c *gin.Context)
- func MerchantOrderAccept(c *gin.Context)
- func MerchantPhoneLogin(c *gin.Context)
- func MultiSearch(c *gin.Context)
- func OrderIsDelivered(c *gin.Context)
- func PlaceOrder(c *gin.Context)
- func RejectOrderByMerchant(c *gin.Context)
- func Search(c *gin.Context)
- func SetupConfig() *oauth2.Config
- func SiginWithGoogle(c *gin.Context)
- func SignUpCustomerWithEmail(c *gin.Context)
- func SignUpDriverWithEmail(c *gin.Context)
- func SignUpMerchant(c *gin.Context)
- func UpdateCustomer(c *gin.Context)
- func UpdateDriver(c *gin.Context)
- func UpdateMenu(c *gin.Context)
- func UpdateMerchant(c *gin.Context)
- func UpdateReview(c *gin.Context)
- func UploadFile(c *gin.Context)
- func VerifyOtpEmail(c *gin.Context)
- func VerifyOtpPhone(c *gin.Context)
- type AccOrderMerchantBody
- type ChangeEmaildBody
- type ChangePasswordBody
- type ChangePhonedBody
- type CustomerBody
- type DriverBody
- type EmailLoginBody
- type Filter
- type FilterMerchantsBody
- type Item
- type MenuBody
- type MerchantBody
- type PhoneLoginBody
- type PlaceOrderBody
- type ReviewBody
- type ReviewExternalBody
- type SignUpMerchantBody
- type SignUpWithDriverBody
- type SignUpWithEmailBody
Constants ¶
This section is empty.
Variables ¶
View Source
var CancelReason = []string{"CANCEL_FROM_MERCHANT", "CANCEL_FROM_CUSTOMER", "CANCEL_FROM_ADMIN"}
Functions ¶
func AccpetOrderByDriver ¶
func AddMenuImages ¶
func AssignOrderToDriver ¶
func CancelOrder ¶
func ChangeCustomerDevice ¶
func ChangeCustomerEmail ¶
func ChangeCustomerPassword ¶
func ChangeCustomerProfile ¶
func ChangeCustomerWebhooks ¶
func ChangeDriverDevice ¶
func ChangeDriverEmail ¶
func ChangeDriverLocation ¶
func ChangeDriverPassword ¶
func ChangeDriverPhone ¶
func ChangeDriverProfile ¶
func ChangeDriverWebhooks ¶
func ChangeMerchantDevice ¶
func ChangeMerchantPassword ¶
func ChangeMerchantPhone ¶
func ChangeMerchantProfile ¶
func ChangeMerchantWebhooks ¶
func ChangeOrderStatus ¶
func ChangeOrderStatus(stage string) gin.HandlerFunc
func CompleteSignUp ¶
func CreateMenu ¶
func CreateReview ¶
func CustomerEmailLogin ¶
func DeleteCustomer ¶
func DeleteDriver ¶
func DeleteMenu ¶
func DeleteMerchant ¶
func DeleteReview ¶
func DriverEmailLogin ¶
func DropOrderByDriver ¶
func FilterMerchants ¶
func GetAllCustomers ¶
func GetAllDrivers ¶
func GetAllMerchants ¶
func GetAllOrders ¶
func GetAllReview ¶
func GetCustomer ¶
func GetDrivesByLocation ¶
func GetListDrivers ¶
func GetMenuFromMerchant ¶
func GetMerchant ¶
func GetMerchantByLocation ¶
func GetOrderByCustomer ¶
func GetOrderByDriver ¶
func GetOrderByLocation ¶
func GetOrderByMerchant ¶
func GetOrderByid ¶
func GetReviewById ¶
func GetReviewToInstace ¶
func GetReviewToInstace(Type string) gin.HandlerFunc
func GetUserReviews ¶
func GoogleCallBack ¶
GoogleCallBack function after SiginWithGoogle or SiginUpWithGoogle
func MerchantOrderAccept ¶
func MerchantPhoneLogin ¶
func MultiSearch ¶
func OrderIsDelivered ¶
func PlaceOrder ¶
func RejectOrderByMerchant ¶
func SetupConfig ¶
func SiginWithGoogle ¶
func SignUpCustomerWithEmail ¶
func SignUpDriverWithEmail ¶
func SignUpMerchant ¶
func UpdateCustomer ¶
func UpdateDriver ¶
func UpdateMenu ¶
func UpdateMerchant ¶
func UpdateReview ¶
func UploadFile ¶
func VerifyOtpEmail ¶
func VerifyOtpPhone ¶
Types ¶
type AccOrderMerchantBody ¶
type ChangeEmaildBody ¶
type ChangePasswordBody ¶
type ChangePhonedBody ¶
type CustomerBody ¶
type DriverBody ¶
type EmailLoginBody ¶
type FilterMerchantsBody ¶
type MenuBody ¶
type MenuBody struct { Title string `json:"title" bson:"title"` // Burger Description string `json:"description" bson:"description"` // Chicken fries contains Status string `json:"status" bson:"status"` // available , unavailable , banned Category string `json:"category" bson:"category"` // fast food , drink , // Images of the product urls Price uint `json:"price" bson:"price"` // the price of the product is represented as cents 99 = $0.99 Attributes db.Attributes `json:"attributes" bson:"attributes"` Reciepe []string `json:"reciepe" bson:"reciepe"` EstimateTime int `json:"estimate_time"` Images []string `json:"images"` }
type MerchantBody ¶
type MerchantBody struct { Location []float64 `json:"location"` Address string `json:"address"` BusinessEmail string `json:"business_email"` TimeOperationStart float32 `json:"time_operation_start"` TimeOperationEnd float32 `json:"time_operation_end"` BusinessName string `json:"business_name"` ActiveDays []db.ActiveDays `json:"active_days"` }
type PhoneLoginBody ¶
type PlaceOrderBody ¶
type PlaceOrderBody struct { Items []Item `json:"items"` DropOffPhone string `json:"dropoff_phone" ` DropOffExteranlId string `json:"dropoff_external_id"` DropOffContactName string `json:"dropoff_contact_name"` DropOffAddress string `json:"dropoff_address"` // address 901 Market Street 6th Floor San Francisco, CA 94103 DroOffLocation []float64 `json:"dropoff_location"` // location cordinates. float([123.1312343,-37.2144343]) DropOffInstruction string `json:"dropoff_instructions"` PickUpExternalId string `json:"pickup_external_id"` Type string `json:"type"` }
type ReviewBody ¶
type ReviewExternalBody ¶
type ReviewExternalBody struct { }
type SignUpMerchantBody ¶
type SignUpWithDriverBody ¶
type SignUpWithEmailBody ¶
Click to show internal directories.
Click to hide internal directories.