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
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 |
import org.springframework.web.bind.annotation.*; |
8 | 8 |
|
9 | 9 |
import java.util.List; |
10 |
+import java.util.Map; |
|
10 | 11 |
|
11 | 12 |
/** |
12 | 13 |
* @author 권민수 |
... | ... | @@ -34,7 +35,11 @@ |
34 | 35 |
} |
35 | 36 |
|
36 | 37 |
@PostMapping("/insert.json") |
37 |
- public void insertWordBook(@RequestBody WordBookVO wordBook) { |
|
38 |
+ public void insertWordBook(@RequestBody Map<String, String> req) { |
|
39 |
+ WordBookVO wordBook = new WordBookVO(); |
|
40 |
+ wordBook.setWdBookTypeId(req.get("wdBookTypeId")); |
|
41 |
+ wordBook.setTextId(req.get("textId")); |
|
42 |
+ wordBook.setUserId(req.get("userId")); |
|
38 | 43 |
wordBookService.insertWordBook(wordBook); |
39 | 44 |
} |
40 | 45 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?