interfaces

package
v0.0.0-...-0874fcc Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAdmin

type IAdmin interface {
	Signup(*fiber.Ctx) error
	Login(*fiber.Ctx) error
	Validate(*fiber.Ctx) error
	UserManagement(*fiber.Ctx) error
	ViewUsers(*fiber.Ctx) error
	Logout(*fiber.Ctx) error
	ViewOrders(*fiber.Ctx) error
	DeliveryStatusUpdate(*fiber.Ctx) error
	ManageUser(*fiber.Ctx) error
	AdminRefresh(*fiber.Ctx) error
}

type IBillGenerator

type IBillGenerator interface {
	GenerateInvoice(model.Invoice) string
}

type IDatabase

type IDatabase interface {
	CloseDb(*gorm.DB)
	OpenDb() *gorm.DB
}

type IProduct

type IProduct interface {
	AddProducts(*fiber.Ctx) error
	UpdatePro(*fiber.Ctx) error
	DelProduct(*fiber.Ctx) error
	ViewProducts(*fiber.Ctx) error
	GetbyCategory(*fiber.Ctx) error
	SearchProduct(*fiber.Ctx) error
}

type IToken

type IToken interface {
	GenJwtToken(string, uint, int) (string, string)
	RefreshToken(*gorm.DB, string, string) (string, string, string)
	AdminRefreshToken(*gorm.DB, string, string) (string, string, string)
}

type IUser

type IUser interface {
	UserSignup(*fiber.Ctx) error
	UserLogin(*fiber.Ctx) error
	Home(*fiber.Ctx) error
	Verification(*fiber.Ctx) error
	EditUserInfo(*fiber.Ctx) error
	AddToCart(*fiber.Ctx) error
	OrderFromCart(c *fiber.Ctx) error
	Checkout(*fiber.Ctx) error
	UserLogout(*fiber.Ctx) error
	Refresh(*fiber.Ctx) error
	GenerateInvoice(*fiber.Ctx) error
	RemoveFromCart(*fiber.Ctx) error
	First(*fiber.Ctx) error
}

Jump to

Keyboard shortcuts

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