blob: f81053e2665afeb080a2da95397bbac03dc2e7d1 [file] [log] [blame]
package com.example.g8backend.service;
import com.example.g8backend.entity.Post;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
public interface IPostService extends IService<Post> {
List<Post> getPostsByUserId(Long userId);
Post createPost(Post post);
Post updatePost(Post post);
List<Post> getPostsByType(String postType);
Long getPostLikeCount(Long postId);
void likePost(Long userId, Long postId);
void unlikePost(Long userId, Long postId);
}