📄 commentservice.java
字号:
package org.whatisjava.dang.service;
import java.util.List;
import org.whatisjava.dang.domain.Comment;
import org.whatisjava.dang.domain.CommentReply;
import org.whatisjava.dang.domain.Product;
import org.whatisjava.dang.domain.User;
public class CommentService {
public void createComment(Comment comment) {
}
public Comment getCommentById(Integer id, boolean withReplay) {
return null;
}
public Comment getCommentById(Integer id) {
return this.getCommentById(id, false);
}
public void createReply(CommentReply reply) {
}
public List<?> findCommentByUser(User user, boolean withReply) {
return null;
}
public List<?> findReplyByUser(User user) {
return null;
}
public List<?> findCommentByProduct(Product product, boolean withReply) {
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -