Commit 92430b5d30197484e1778926789cd72def1a4540
1 parent
1c477c48b4
Exists in
master
and in
8 other branches
1
Showing 1 changed file with 3 additions and 6 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PostReviewController.java
View file @
92430b5
... | ... | @@ -9,10 +9,7 @@ |
9 | 9 | import org.apache.commons.lang.StringUtils; |
10 | 10 | import org.springframework.beans.factory.annotation.Autowired; |
11 | 11 | import org.springframework.stereotype.Controller; |
12 | -import org.springframework.web.bind.annotation.RequestMapping; | |
13 | -import org.springframework.web.bind.annotation.RequestMethod; | |
14 | -import org.springframework.web.bind.annotation.RequestParam; | |
15 | -import org.springframework.web.bind.annotation.ResponseBody; | |
12 | +import org.springframework.web.bind.annotation.*; | |
16 | 13 | |
17 | 14 | import javax.validation.Valid; |
18 | 15 | |
... | ... | @@ -35,7 +32,7 @@ |
35 | 32 | */ |
36 | 33 | @RequestMapping(method = RequestMethod.POST,value = "/postreview") |
37 | 34 | @ResponseBody |
38 | - public BaseResponse addPostReview(@Valid PostReviewRequest postReviewRequest){ | |
35 | + public BaseResponse addPostReview(@Valid @RequestBody PostReviewRequest postReviewRequest){ | |
39 | 36 | return postReviewFacade.addPostReview(postReviewRequest); |
40 | 37 | } |
41 | 38 | |
... | ... | @@ -48,7 +45,7 @@ |
48 | 45 | */ |
49 | 46 | @RequestMapping(method = RequestMethod.GET,value = "/postreviewlist") |
50 | 47 | @ResponseBody |
51 | - public BaseResponse queryPostReviewList(@Valid PostReviewQueryRequest postReviewQueryRequest){ | |
48 | + public BaseResponse queryPostReviewList(@Valid @RequestBody PostReviewQueryRequest postReviewQueryRequest){ | |
52 | 49 | return postReviewFacade.queryPostList(postReviewQueryRequest); |
53 | 50 | } |
54 | 51 |