崔向南 | 03d21b9 | 2025-06-05 17:42:23 +0800 | [diff] [blame^] | 1 | package bounty.mapper; |
| 2 | |
| 3 | import bounty.domain.Bounty; |
| 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 5 | import com.baomidou.mybatisplus.core.metadata.IPage; |
| 6 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 7 | import org.apache.ibatis.annotations.Mapper; |
| 8 | import org.apache.ibatis.annotations.Param; |
| 9 | import java.util.List; |
| 10 | |
| 11 | // 悬赏 Mapper 接口 |
| 12 | @Mapper |
| 13 | public interface BountyMapper extends BaseMapper<Bounty> { |
| 14 | // 导入 List 类 |
| 15 | //IPage<Bounty> selectPage(Page<Bounty> page); |
| 16 | // 新增与 XML 中 insert 方法匹配的接口声明 |
| 17 | int insert(Bounty bounty); |
| 18 | |
| 19 | Bounty selectById(Long id); |
| 20 | |
| 21 | // 新增:定义 selectList 方法 |
| 22 | List<Bounty> selectList(); // |
| 23 | |
| 24 | } |
| 25 | |