wuchimedes | e5722e3 | 2025-04-13 17:38:50 +0800 | [diff] [blame] | 1 | package com.example.g8backend.mapper; |
2 | |||||
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||
4 | import com.example.g8backend.entity.Post; | ||||
5 | import org.apache.ibatis.annotations.Mapper; | ||||
6 | import org.apache.ibatis.annotations.Param; | ||||
7 | |||||
8 | import java.util.List; | ||||
9 | |||||
10 | @Mapper | ||||
11 | public interface PostMapper extends BaseMapper<Post> { | ||||
12 | List<Post> getPostsByUserId(@Param("userId") Long userId); | ||||
13 | } |