Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CartUseCase ¶
type MenuUseCase ¶
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) }
Click to show internal directories.
Click to hide internal directories.