Commit 78c5df18 authored by 刘基明's avatar 刘基明

接口修改

parent 6f895232
...@@ -35,7 +35,8 @@ public class CommentController { ...@@ -35,7 +35,8 @@ public class CommentController {
@PostMapping(value = "/publishComment") @PostMapping(value = "/publishComment")
@ResponseBody @ResponseBody
public CommonResp<Void> publishCommet(@RequestBody CreateCommentReq req) { public CommonResp<Void> publishCommet(@RequestBody CreateCommentReq req) {
String userId = userHolder.getUserInfo().getId(); // String userId = userHolder.getUserInfo().getId();
String userId = "liujm";
commentManager.comment(req, userId); commentManager.comment(req, userId);
return CommonResp.success(); return CommonResp.success();
} }
...@@ -46,7 +47,8 @@ public class CommentController { ...@@ -46,7 +47,8 @@ public class CommentController {
@ResponseBody @ResponseBody
public CommonResp<Page<CommentQo>> queryComment(@RequestBody QueryCommentReq req) { public CommonResp<Page<CommentQo>> queryComment(@RequestBody QueryCommentReq req) {
//todo //todo
String userId = userHolder.getUserInfo().getId(); // String userId = userHolder.getUserInfo().getId();
String userId = "liujm";
List<CommentQo> result = commentManager.queryComments(req.getThemeId(), userId); List<CommentQo> result = commentManager.queryComments(req.getThemeId(), userId);
return CommonResp.success(PageUtils.page(req.getPage(), result)); return CommonResp.success(PageUtils.page(req.getPage(), result));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment