userHandler

package
v0.0.0-...-a9fa8a7 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserGrpcHandler

func NewUserGrpcHandler(userUsecase userUsecase.UserUsecaseService) *userGrpcHandler

func PaymentHandler

func PaymentHandler(amount int, orderId, razorPayKey, razorPaySecret string) (string, error)

func RazorPaymentVerification

func RazorPaymentVerification(sign, orderId, paymentId, secret string) error

Types

type UserHttpHandlerService

type UserHttpHandlerService interface {
	InsertUser(c echo.Context) error
	FindOneUserProfile(c echo.Context) error
	ResetPassword(c echo.Context) error

	// --- Wallet ---
	AddToWallet(c echo.Context) error
	GetUserWalletAccount(c echo.Context) error

	// --- Payment ---
	RazorPayLoad(c echo.Context) error
	RazorPaymentConfirm(c echo.Context) error

	// --- Reports ---
	UserPaymentReport(c echo.Context) error
	SingleOrderPaymentReport(c echo.Context) error

	// --- Wish List ---
	AddToWishList(c echo.Context) error
	GetWishList(c echo.Context) error
	RemoveFromWishList(c echo.Context) error

	// --- Address ---
	AddAddress(c echo.Context) error
	GetAddress(c echo.Context) error
	UpdateAddress(c echo.Context) error
	DeleteAddress(c echo.Context) error

	// --- Admin ---
	BlockOrUnblockUser(c echo.Context) error
	SalesReport(c echo.Context) error
}

func NewUserHttpHandler

func NewUserHttpHandler(cfg *config.Config, userUsecase userUsecase.UserUsecaseService) UserHttpHandlerService

type UserQueueHandlerService

type UserQueueHandlerService interface{}

func NewUserQueueHandler

func NewUserQueueHandler(cfg *config.Config, userUsecase userUsecase.UserUsecaseService) UserQueueHandlerService

Jump to

Keyboard shortcuts

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