This commit is contained in:
sjm
2023-12-22 17:05:37 +08:00
parent b77f863fb5
commit b2cff4c97a
12 changed files with 557 additions and 1 deletions

View File

@@ -15,4 +15,6 @@ public interface CommentService {
String Delete(int id);
// 显示评论
String View_comment();
// 显示回复
String View_Reply(int id);
}

View File

@@ -72,4 +72,10 @@ public class CommentServiceImpl implements CommentService {
List<Comment> list = commentDao.selectByAllComment();
return JSON.toJSONString(list);
}
// 显示回复
public String View_Reply(int id){
List<Comment> list = commentDao.selectByAllReply(id);
return JSON.toJSONString(list);
}
}