package space.anyi.serve.service; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; import space.anyi.serve.entity.post.Post; import space.anyi.serve.entity.post.PostVo; public interface PostService extends IService { Page listPosts(String keyword, String status, int pageNum, int pageSize, Long currentUserId); PostVo getPostDetail(Long id, Long currentUserId); Long createPost(Post post); void updateHitStatus(Long id, String hitStatus); void updateViewCount(Long id, Integer viewCount); void updatePost(Long id, Post post); void deletePost(Long id); boolean hasUserPaid(Long postId, Long userId); Page listExpertPreviousPosts(Long expertId, int pageNum, int pageSize); }