wuchimedes | e5722e3 | 2025-04-13 17:38:50 +0800 | [diff] [blame] | 1 | package com.example.g8backend.service; |
| 2 | |
| 3 | import com.example.g8backend.entity.Post; |
| 4 | import com.baomidou.mybatisplus.extension.service.IService; |
wuchimedes | e5722e3 | 2025-04-13 17:38:50 +0800 | [diff] [blame] | 5 | import java.util.List; |
| 6 | |
| 7 | public interface IPostService extends IService<Post> { |
| 8 | List<Post> getPostsByUserId(Long userId); |
22301071 | 1f457dc | 2025-04-15 17:35:55 +0800 | [diff] [blame] | 9 | Post createPost(Post post); |
| 10 | Post updatePost(Post post); |
| 11 | List<Post> getPostsByType(String postType); |
| 12 | Long getPostLikeCount(Long postId); |
| 13 | void likePost(Long userId, Long postId); |
| 14 | void unlikePost(Long userId, Long postId); |
wuchimedes | e5722e3 | 2025-04-13 17:38:50 +0800 | [diff] [blame] | 15 | } |