@@ -8,6 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||
@@ -99,6 +100,20 @@ public class AdminController {
|
||||
model.addAttribute("authorInfo", authorService.authorGetDetail(authorId));
|
||||
|
||||
}
|
||||
|
||||
/* 작가 정보 수정 */
|
||||
@PostMapping("/authorModify")
|
||||
public String authorModifyPOST(AuthorVO author, RedirectAttributes rttr) throws Exception{
|
||||
|
||||
logger.info("authorModifyPOST......." + author);
|
||||
|
||||
int result = authorService.authorModify(author);
|
||||
|
||||
rttr.addFlashAttribute("modify_result", result);
|
||||
|
||||
return "redirect:/admin/authorManage";
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user