guntaek 2024-07-29
Merge remote-tracking branch 'origin/master'
@231e8849dd1b46725ca648a8cc5695c3ff60e6d0
src/main/java/com/takensoft/ai_lms/lms/word_book/web/WordBookController.java
--- src/main/java/com/takensoft/ai_lms/lms/word_book/web/WordBookController.java
+++ src/main/java/com/takensoft/ai_lms/lms/word_book/web/WordBookController.java
@@ -7,6 +7,7 @@
 import org.springframework.web.bind.annotation.*;
 
 import java.util.List;
+import java.util.Map;
 
 /**
  * @author 권민수
@@ -34,7 +35,11 @@
     }
 
     @PostMapping("/insert.json")
-    public void insertWordBook(@RequestBody WordBookVO wordBook) {
+    public void insertWordBook(@RequestBody Map<String, String> req) {
+        WordBookVO wordBook = new WordBookVO();
+        wordBook.setWdBookTypeId(req.get("wdBookTypeId"));
+        wordBook.setTextId(req.get("textId"));
+        wordBook.setUserId(req.get("userId"));
         wordBookService.insertWordBook(wordBook);
     }
 
Add a comment
List