productRepository created
This commit is contained in:
@@ -27,6 +27,7 @@ type ProductService interface {
|
||||
UpdateProductLocation(input models.Productlocations) error
|
||||
CreateProductLocation(input []models.Productlocations) error
|
||||
CreateProductVariant(input models.Productvariant) error
|
||||
DeleteProductLocation(tenantid, locationid, productid int) error
|
||||
}
|
||||
type productService struct {
|
||||
repo repositories.ProductRepository
|
||||
@@ -206,3 +207,8 @@ func (s *productService) CreateProductLocation(input []models.Productlocations)
|
||||
func (s *productService) CreateProductVariant(input models.Productvariant) error {
|
||||
return s.repo.CreateProductVariant(input)
|
||||
}
|
||||
|
||||
func (s *productService) DeleteProductLocation(tenantid, locationid, productid int) error {
|
||||
return s.repo.DeleteProductLocation(tenantid, locationid, productid)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user