Commit 3d6c36e8 authored by 刘基明's avatar 刘基明

评论接口

parent 6aaedfd4
......@@ -57,7 +57,8 @@ public class CommentController {
@PostMapping(value = "/likeComment")
@ResponseBody
public CommonResp<Void> likeComment(@RequestBody LikeCommentReq req) {
String userId = userHolder.getUserId();
// String userId = userHolder.getUserId();
String userId = "liujm";
commentManager.likeComment(req, userId);
return CommonResp.success();
}
......
......@@ -72,7 +72,7 @@ public class ThemeController {
@ApiOperation("用户删除自有主题")
@GetMapping(value = "/delete")
@ResponseBody
public CommonResp<Void> delete(@RequestParam String themeId) {
public CommonResp<Void> delete(@RequestParam(value = "themeId") String themeId) {
String userId = "liujm";
themeManager.delete(themeId);
return CommonResp.success();
......
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