handlers

package
v0.0.0-...-54eb6b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCart

func CreateCart(c *fiber.Ctx) error

func CreateCustomer

func CreateCustomer(c *fiber.Ctx) error

CreateCustomer creates a new customer

func CreateOrder

func CreateOrder(c *fiber.Ctx) error

func CreateProduct

func CreateProduct(c *fiber.Ctx) error

CreateProduct creates a new product

func DeleteCart

func DeleteCart(c *fiber.Ctx) error

func DeleteProduct

func DeleteProduct(c *fiber.Ctx) error

DeleteProduct deletes a product

func GetCart

func GetCart(c *fiber.Ctx) error

func GetCustomer

func GetCustomer(c *fiber.Ctx) error

GetCustomer retrieves information of currently authorized user

func GetOrders

func GetOrders(c *fiber.Ctx) error

GetOrders returns all orders with pagination

func GetProduct

func GetProduct(c *fiber.Ctx) error

GetProduct returns a single product

func GetProducts

func GetProducts(c *fiber.Ctx) error

GetProducts returns all products with pagination

func GetUserByPhone

func GetUserByPhone(phone string) (*models.Customer, error)

func Login

func Login(c *fiber.Ctx) error

func Logout

func Logout(c *fiber.Ctx) error

func UpdateCart

func UpdateCart(c *fiber.Ctx) error

func UpdateProduct

func UpdateProduct(c *fiber.Ctx) error

UpdateProduct updates a product

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL