Class ProductService
java.lang.Object
com.eeit87t3.tickiteasy.product.service.ProductService
- Author:
- Liang123456123
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProduct(ProductDTO productDTO, MultipartFile imageFile) voiddeleteProductById(Integer productID) editProductById(Integer productID, ProductDTO productDTO, MultipartFile imageFile) editProductStatusById(Integer productID, ProductEntity updatedProduct) findProductById(Integer productID) org.springframework.data.domain.Page<ProductEntity> getProductsByName(String name, int page, int size)
-
Constructor Details
-
ProductService
public ProductService()
-
-
Method Details
-
getProductCategories
-
getProductTags
-
getProductTagStock
-
getAllProducts
-
editProductStatusById
@Transactional public ProductEntity editProductStatusById(Integer productID, ProductEntity updatedProduct) throws IOException - Throws:
IOException
-
createProduct
@Transactional public ProductEntity createProduct(ProductDTO productDTO, MultipartFile imageFile) throws IOException - Throws:
IOException
-
editProductById
@Transactional public ProductEntity editProductById(Integer productID, ProductDTO productDTO, MultipartFile imageFile) throws IOException - Throws:
IOException
-
deleteProductById
- Throws:
IOException
-
findProductById
-
getProductsByName
public org.springframework.data.domain.Page<ProductEntity> getProductsByName(String name, int page, int size)
-