public interface PostCommentService
限定符和类型 | 方法和说明 |
---|---|
BaseVO |
addComment(javax.servlet.http.HttpServletRequest request)
添加回复,回帖
|
void |
attachClean(PostComment instance) |
void |
attachDirty(PostComment instance) |
List |
commentAndUser(int postid)
根据帖子id查所有回帖,排序为 id DESC
|
List |
commentAndUser(int postid,
int limit)
根据帖子id查回帖,排序为 id DESC
|
int |
count(int postid)
根据帖子id查回帖的数量
|
void |
delete(PostComment persistentInstance) |
BaseVO |
deleteComment(int id)
删除帖子评论,逻辑删除,改状态isdelete=1
|
List |
findAll() |
List<PostComment> |
findByAddtime(Object addtime) |
List<PostComment> |
findByExample(PostComment instance) |
PostComment |
findById(Integer id) |
List<PostComment> |
findByPostid(Object postid) |
List |
findByProperty(String propertyName,
Object value) |
List<PostComment> |
findByText(Object text) |
List<PostComment> |
findByUserid(Object userid) |
PostComment |
merge(PostComment detachedInstance) |
void |
save(PostComment transientInstance) |
void save(PostComment transientInstance)
void delete(PostComment persistentInstance)
PostComment findById(Integer id)
List<PostComment> findByExample(PostComment instance)
List<PostComment> findByPostid(Object postid)
List<PostComment> findByAddtime(Object addtime)
List<PostComment> findByUserid(Object userid)
List<PostComment> findByText(Object text)
List findAll()
PostComment merge(PostComment detachedInstance)
void attachDirty(PostComment instance)
void attachClean(PostComment instance)
List commentAndUser(int postid)
postid
- 帖子idList commentAndUser(int postid, int limit)
postid
- 帖子idlimit
- 条数,若为0则显示所有int count(int postid)
postid
- 帖子idBaseVO deleteComment(int id)
id
- 要删除的评论的id, PostComment
.idBaseVO