interfaces

package
v0.0.0-...-7d8e645 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminHandler

type AdminHandler interface {
	GetAllUsers(ctx *gin.Context)
	BlockUser(ctx *gin.Context)

	AdminSignUp(ctx *gin.Context)
	GetFullSalesReport(ctx *gin.Context)
}

type AuthHandler

type AuthHandler interface {
	//userSide
	UserLogin(ctx *gin.Context)
	UserSignUp(ctx *gin.Context)
	UserSignUpVerify(ctx *gin.Context)

	UserGoogleAuthInitialize(ctx *gin.Context)
	UserGoogleAuthLoginPage(ctx *gin.Context)
	UserGoogleAuthCallBack(ctx *gin.Context)

	UserLoginOtpVerify(ctx *gin.Context)
	UserLoginOtpSend(ctx *gin.Context)

	UserRenewAccessToken() gin.HandlerFunc

	//admin side
	AdminLogin(ctx *gin.Context)
	AdminRenewAccessToken() gin.HandlerFunc
}

type BrandHandler

type BrandHandler interface {
	Save(ctx *gin.Context)
	FindOne(ctx *gin.Context)
	FindAll(ctx *gin.Context)
	Update(ctx *gin.Context)
	Delete(ctx *gin.Context)
}

type CartHandler

type CartHandler interface {
	AddToCart(ctx *gin.Context)
	GetCart(ctx *gin.Context)
	UpdateCart(ctx *gin.Context)
	RemoveFromCart(ctx *gin.Context)
}

type CouponHandler

type CouponHandler interface {
	SaveCoupon(ctx *gin.Context)
	GetAllCouponsAdmin(ctx *gin.Context)
	GetAllCouponsForUser(ctx *gin.Context)
	UpdateCoupon(ctx *gin.Context)
	ApplyCouponToCart(ctx *gin.Context)
}

type OfferHandler

type OfferHandler interface {

	// offer
	SaveOffer(ctx *gin.Context)
	RemoveOffer(ctx *gin.Context)
	GetAllOffers(ctx *gin.Context)

	// category offer
	GetAllCategoryOffers(ctx *gin.Context)
	SaveCategoryOffer(ctx *gin.Context)
	RemoveCategoryOffer(ctx *gin.Context)
	ChangeCategoryOffer(ctx *gin.Context)

	// product offer
	GetAllProductsOffers(ctx *gin.Context)
	SaveProductOffer(ctx *gin.Context)
	RemoveProductOffer(ctx *gin.Context)
	ChangeProductOffer(ctx *gin.Context)
}

type OrderHandler

type OrderHandler interface {
	GetAllOrderStatuses(ctx *gin.Context)

	SaveOrder(ctx *gin.Context)

	// ApproveOrderCOD(ctx *gin.Context)
	CancelOrder(ctx *gin.Context)
	SubmitReturnRequest(ctx *gin.Context)
	GetAllOrderItemsUser() func(ctx *gin.Context)
	GetUserOrder(ctx *gin.Context)

	//admin side
	GetAllShopOrders(ctx *gin.Context)
	GetAllOrderItemsAdmin() func(ctx *gin.Context)
	UpdateOrderStatus(ctx *gin.Context)
	GetAllOrderReturns(ctx *gin.Context)
	GetAllPendingReturns(ctx *gin.Context)
	UpdateReturnRequest(ctx *gin.Context)

	// wallet
	GetUserWallet(ctx *gin.Context)
	GetUserWalletTransactions(ctx *gin.Context)
}

type PaymentHandler

type PaymentHandler interface {

	// payment
	CartOrderPaymentSelectPage(ctx *gin.Context)
	// AddPaymentMethod(ctx *gin.Context)
	UpdatePaymentMethod(ctx *gin.Context)
	GetAllPaymentMethodsAdmin() func(ctx *gin.Context)
	GetAllPaymentMethodsUser() func(ctx *gin.Context)

	PaymentCOD(ctx *gin.Context)

	RazorpayCheckout(ctx *gin.Context)
	RazorpayVerify(ctx *gin.Context)

	StripePaymentVeify(ctx *gin.Context)
	StripPaymentCheckout(ctx *gin.Context)
}

type ProductHandler

type ProductHandler interface {
	GetAllCategories(ctx *gin.Context)
	SaveCategory(ctx *gin.Context)
	SaveSubCategory(ctx *gin.Context)
	SaveVariation(ctx *gin.Context)
	SaveVariationOption(ctx *gin.Context)
	GetAllVariations(ctx *gin.Context)

	GetAllProductsAdmin() func(ctx *gin.Context)
	GetAllProductsUser() func(ctx *gin.Context)

	SaveProduct(ctx *gin.Context)
	UpdateProduct(ctx *gin.Context)

	SaveProductItem(ctx *gin.Context)
	GetAllProductItemsAdmin() func(ctx *gin.Context)
	GetAllProductItemsUser() func(ctx *gin.Context)
}

type StockHandler

type StockHandler interface {
	UpdateStock(ctx *gin.Context)
	GetAllStocks(ctx *gin.Context)
}

type UserHandler

type UserHandler interface {
	GetProfile(ctx *gin.Context)
	UpdateProfile(ctx *gin.Context)

	SaveAddress(ctx *gin.Context)
	GetAllAddresses(ctx *gin.Context)
	UpdateAddress(ctx *gin.Context)
	SaveToWishList(ctx *gin.Context)
	RemoveFromWishList(ctx *gin.Context)
	GetWishList(ctx *gin.Context)
}

Jump to

Keyboard shortcuts

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