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 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"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.