Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryRepository ¶
type CategoryRepository interface { CreateCategory(c context.Context, req *pb.Category) (*pb.Category, error) GetCategoryByID(c context.Context, req *pb.GetCategoryFilter) (*pb.GetCategoryResponse, error) GetCategories(c context.Context, req *pb.GetCategoryFilter) (*pb.GetCategoryResponse, error) UpdateCategory(c context.Context, req *pb.Category) (*pb.Category, error) DeleteCategory(c context.Context, req *pb.GetCategoryFilter) (*pb.DeleteCategoryResponse, error) }
func NewCategoryRepository ¶
func NewCategoryRepository(db Store, catQuery query.CategoryQuery) CategoryRepository
type ProductRepository ¶
type ProductRepository interface { CreateProduct(c context.Context, product *pb.Product) (*pb.Product, error) GetProductByID(c context.Context, filter *pb.GetProductFilter) (*pb.GetProductResponse, error) GetAllProducts(c context.Context, filter *pb.GetProductFilter) (*pb.GetProductResponse, error) UpdateProduct(c context.Context, product *pb.Product) (*pb.Product, error) ApproveProduct(c context.Context, approve *pb.ApproveProductRequest) (*pb.ApproveProductResponse, error) }
func NewProductRepository ¶
func NewProductRepository(db Store, productQuery query.ProductQuery) ProductRepository
type Store ¶
Click to show internal directories.
Click to hide internal directories.