package
0.0.0-20221221161611-a147a0293ee4
Repository: https://github.com/devbeast3800/golangapi.git
Documentation: pkg.go.dev

# Functions

AllPromotions returns a slice of Promotion (all promotions in promotions table).
PromotionCreate creates a promotion instance in the database.
PromotionDelete deletes a promotion instance from the database.
PromotionFind finds a promotion instance by ID in the database.
PromotionIndex => returns a slice of all promotions in the database.
PromotionUpdate Updates a promotion instance in the database.

# Structs

GenericResponse returns timestamp and status to promotion in JSON.
Promotion represents a promotion instance.