products

package
v0.0.0-...-5be7303 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteProducts

func DeleteProducts(c *fiber.Ctx) error

func IndexProducts

func IndexProducts(c *fiber.Ctx) error

func Routes

func Routes() *fiber.App

func ShowProducts

func ShowProducts(c *fiber.Ctx) error

func StoreProducts

func StoreProducts(c *fiber.Ctx) error

func UpdateProducts

func UpdateProducts(c *fiber.Ctx) error

Types

type Model

type Model struct {
	ID          primitive.ObjectID   `bson:"_id" json:"id"`
	Name        string               `bson:"name" json:"name"`
	Description string               `bson:"description" json:"description"`
	Price       primitive.Decimal128 `bson:"price" json:"price"`
	CreatedAt   primitive.DateTime   `bson:"created_at" json:"created_at"`
	UpdatedAt   primitive.DateTime   `bson:"updated_at" json:"updated_at"`
}

Jump to

Keyboard shortcuts

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