[Spring][쇼핑몰 프로젝트][22] 상품 정보 삭제 구현

https://kimvampa.tistory.com/209
This commit is contained in:
SeoJin Kim
2021-04-26 21:04:02 +09:00
parent 28bc356fce
commit 7d33d4cfd8
22 changed files with 176 additions and 8 deletions

View File

@@ -115,6 +115,20 @@ public class AdminController {
}
/* 상품 정보 삭제 */
@PostMapping("/goodsDelete")
public String goodsDeletePOST(int bookId, RedirectAttributes rttr) {
logger.info("goodsDeletePOST..........");
int result = adminService.goodsDelete(bookId);
rttr.addFlashAttribute("delete_result", result);
return "redirect:/admin/goodsManage";
}
/* 작가 등록 페이지 접속 */
@RequestMapping(value = "authorEnroll", method = RequestMethod.GET)
public void authorEnrollGET() throws Exception{