interfaces

package
v0.0.0-...-4c8fc35 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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 CartUseCase

type CartUseCase interface {
	//
	GetMyCart(ctx context.Context, auth string) (*response.MyCart, error)
	ManageCart(ctx context.Context, userID string, req *request.ManageCart) (*response.ManageCart, error)
}
type MenuUseCase interface {
	//
	Homepage(ctx context.Context, auth string) (*response.Homepage, error)
	Market(ctx context.Context, userID string) (*response.Market, error)
	Education(ctx context.Context, userID string) (*response.Education, error)

	EducationDetails(ctx context.Context, userID, id string) (*response.EducationDetails, error)
}

type ProductUseCase

type ProductUseCase interface {
	//
	GetProducts(ctx context.Context, userID, categoryName, sortBy string, page int) (*response.GetProductWithPagination, error)
	GetProductDetails(ctx context.Context, userID, productID string) (*response.GetProductDetails, error)

	GetProductReviews(ctx context.Context, userID, productID, sortBy string, page int) (*response.ReviewDetails, error)
}

type PropertyUseCase

type PropertyUseCase interface {
	//
	GetAllWishlistsProperties(ctx context.Context, userID string) (*response.PropertiesWishlist, error)
	ManageWishlistProperties(ctx context.Context, userID string, req *request.ManageWishlistProperties) (*response.ManageWishlistProperties, error)

	GetProperties(ctx context.Context, userID, categoryName, sortBy, province string, page int) (*response.GetPropertiesWithPagination, error)
	GetPropertyDetails(ctx context.Context, userID, propertyID string) (*response.GetPropertyDetails, error)
}

type UserUseCase

type UserUseCase interface {
	//
	FacebookCallBack(ctx context.Context, profile *response.FetchFacebookProfile) (*response.OAuth, error)
	GoogleCallBack(ctx context.Context, profile *response.FetchGoogleProfile) (*response.OAuth, error)

	RegisterWithOAuth(ctx context.Context, req *request.FinishRegisterOAuth) (*response.FinishRegister, error)

	RegisterWithEmailPassword(ctx context.Context, req *request.Register) error
	SendVerificationCodeForRegister(ctx context.Context, req *request.PostRegister) error
	VerifySixCode(ctx context.Context, req *request.FinishRegister) (*response.FinishRegister, error)

	Login(ctx context.Context, req *request.Login) (*response.FinishRegister, error)
	RenewAccessToken(ctx context.Context, refreshToken string) (*response.FinishRegister, error)
	Logout(ctx context.Context, refreshToken string) error
}

type WishlistUseCase

type WishlistUseCase interface {
	//
	GetAllWishlists(ctx context.Context, userID string) (*response.ProductWishlist, error)
	ManageWishlist(ctx context.Context, userID string, req *request.ManageWishlist) (*response.ManageWishlist, error)
}

Jump to

Keyboard shortcuts

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