woals 07-29
240729 권민수 단어장 등록 api 개선
@008a8a96081ac6bbc643a7bcd5ee0fe3e1c4393a
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