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

接口修改

parent 6f895232
......@@ -35,7 +35,8 @@ public class CommentController {
@PostMapping(value = "/publishComment")
@ResponseBody
public CommonResp<Void> publishCommet(@RequestBody CreateCommentReq req) {
String userId = userHolder.getUserInfo().getId();
// String userId = userHolder.getUserInfo().getId();
String userId = "liujm";
commentManager.comment(req, userId);
return CommonResp.success();
}
......@@ -46,7 +47,8 @@ public class CommentController {
@ResponseBody
public CommonResp<Page<CommentQo>> queryComment(@RequestBody QueryCommentReq req) {
//todo
String userId = userHolder.getUserInfo().getId();
// String userId = userHolder.getUserInfo().getId();
String userId = "liujm";
List<CommentQo> result = commentManager.queryComments(req.getThemeId(), userId);
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