Commit f91578b00bc81b06cba83695f565837c9c331c1f
1 parent
0527fbeb81
Exists in
master
dict json
Showing 1 changed file with 2 additions and 1 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/RegionsController.java
View file @
f91578b
... | ... | @@ -11,6 +11,7 @@ |
11 | 11 | import org.springframework.beans.factory.annotation.Autowired; |
12 | 12 | import org.springframework.web.bind.annotation.GetMapping; |
13 | 13 | import org.springframework.web.bind.annotation.PostMapping; |
14 | +import org.springframework.web.bind.annotation.RequestBody; | |
14 | 15 | import org.springframework.web.bind.annotation.RestController; |
15 | 16 | |
16 | 17 | import java.util.List; |
... | ... | @@ -54,7 +55,7 @@ |
54 | 55 | * @return |
55 | 56 | */ |
56 | 57 | @PostMapping("saveDict") |
57 | - public BaseResponse saveDict(LymsDict dict){ | |
58 | + public BaseResponse saveDict(@RequestBody LymsDict dict){ | |
58 | 59 | BaseResponse baseResponse=new BaseResponse(); |
59 | 60 | boolean f=lymsDictService.save(dict); |
60 | 61 | baseResponse.setErrorcode(f==true?0:1); |