update
This commit is contained in:
@@ -15,4 +15,6 @@ public interface CommentService {
|
||||
String Delete(int id);
|
||||
// 显示评论
|
||||
String View_comment();
|
||||
// 显示回复
|
||||
String View_Reply(int id);
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user