bug修复
This commit is contained in:
+2
-2
@@ -16,7 +16,7 @@ import java.util.List;
|
||||
|
||||
@Tag(name = "评论接口")
|
||||
@RestController
|
||||
@RequestMapping("/api/comment")
|
||||
@RequestMapping("/api/app/comment")
|
||||
@RequiredArgsConstructor
|
||||
public class CommentController {
|
||||
|
||||
@@ -74,7 +74,7 @@ class AdminCommentController {
|
||||
}
|
||||
|
||||
@Operation(summary = "审核评论")
|
||||
@PostMapping("/{id}/audit")
|
||||
@PutMapping("/{id}/audit")
|
||||
public ApiResult<Void> auditComment(
|
||||
@PathVariable Long id,
|
||||
@RequestParam Integer status) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@TableName("comment")
|
||||
@TableName("blog_comment")
|
||||
public class Comment {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
@@ -18,6 +18,7 @@ public class Comment {
|
||||
|
||||
private Long parentId;
|
||||
|
||||
@TableField("reply_to_user_id")
|
||||
private Long replyToId;
|
||||
|
||||
private String content;
|
||||
|
||||
@@ -6,7 +6,7 @@ import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@TableName("comment_like")
|
||||
@TableName("blog_comment_like")
|
||||
public class CommentLike {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
|
||||
Reference in New Issue
Block a user