Class AdminProductPhotoAPIController
java.lang.Object
com.eeit87t3.tickiteasy.product.controller.AdminProductPhotoAPIController
@RestController
@RequestMapping("/admin/api/productPhoto")
public class AdminProductPhotoAPIController
extends Object
- Author:
- Liang123456123
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProductPhoto(Integer productID, MultipartFile fileName) deleteProductPhoto(Integer photoID) editProductPhoto(Integer photoID, MultipartFile fileName) findProductPhotos(Integer productID)
-
Constructor Details
-
AdminProductPhotoAPIController
public AdminProductPhotoAPIController()
-
-
Method Details
-
createProductPhoto
@PostMapping("/{productID}") public ResponseEntity<ProductPhotoEntity> createProductPhoto(@PathVariable Integer productID, @RequestPart(value="fileName",required=false) MultipartFile fileName) -
editProductPhoto
@PutMapping("/{photoID}") public ResponseEntity<ProductPhotoEntity> editProductPhoto(@PathVariable Integer photoID, @RequestPart(value="fileName",required=false) MultipartFile fileName) -
findProductPhotos
@GetMapping("/product/{productID}") public ResponseEntity<List<ProductPhotoEntity>> findProductPhotos(@PathVariable Integer productID) -
deleteProductPhoto
@DeleteMapping("/{photoID}") public ResponseEntity<Void> deleteProductPhoto(@PathVariable Integer photoID)
-