From e7768d7bcdc4a7fdd90e305ec17f7abfb50e5533 Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Thu, 23 May 2024 23:27:54 +0800 Subject: [PATCH] fix WeChatAouth2Service --- .../java/com/luoo/comment/controller/CommentController.java | 1 + luoo_comment/src/main/java/com/luoo/comment/pojo/Comment.java | 2 ++ luoo_comment/src/main/java/com/luoo/comment/pojo/CommentVo.java | 2 ++ 3 files changed, 5 insertions(+) diff --git a/luoo_comment/src/main/java/com/luoo/comment/controller/CommentController.java b/luoo_comment/src/main/java/com/luoo/comment/controller/CommentController.java index c7866db..5d2715d 100644 --- a/luoo_comment/src/main/java/com/luoo/comment/controller/CommentController.java +++ b/luoo_comment/src/main/java/com/luoo/comment/controller/CommentController.java @@ -328,6 +328,7 @@ public class CommentController extends BaseController { } + @ApiOperation(value = "添加评论",notes = "添加评论,需要登录,并且需要提供评论内容,type 1 代表期刊,2 代表文章 3代表专辑 4代表歌曲") @PostMapping public Result save(@RequestBody CommentVo commentVo, @RequestHeader(value = "Authorization", required = true) String authorization){ //验证是否登录,并且拿到ID diff --git a/luoo_comment/src/main/java/com/luoo/comment/pojo/Comment.java b/luoo_comment/src/main/java/com/luoo/comment/pojo/Comment.java index 89b62b2..7bca060 100644 --- a/luoo_comment/src/main/java/com/luoo/comment/pojo/Comment.java +++ b/luoo_comment/src/main/java/com/luoo/comment/pojo/Comment.java @@ -39,6 +39,8 @@ public class Comment implements Serializable { // 状态 private Integer state; + private Integer type; + private String location; //归属地 /** diff --git a/luoo_comment/src/main/java/com/luoo/comment/pojo/CommentVo.java b/luoo_comment/src/main/java/com/luoo/comment/pojo/CommentVo.java index ec6d3bf..941bf3c 100644 --- a/luoo_comment/src/main/java/com/luoo/comment/pojo/CommentVo.java +++ b/luoo_comment/src/main/java/com/luoo/comment/pojo/CommentVo.java @@ -15,5 +15,7 @@ public class CommentVo { private String journalId; + private Integer type; + // private String journalImage; }