崔向南 | 03d21b9 | 2025-06-05 17:42:23 +0800 | [diff] [blame] | 1 | package bounty.service; |
| 2 | |
| 3 | import bounty.domain.Bounty; |
| 4 | import bounty.domain.BountySubmission; |
| 5 | import bounty.mapper.BountyMapper; |
| 6 | import bounty.mapper.BountySubmissionMapper; |
| 7 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| 8 | import com.baomidou.mybatisplus.core.metadata.IPage; |
| 9 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 10 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| 11 | import org.springframework.stereotype.Service; |
| 12 | |
| 13 | |
| 14 | import java.util.List; |
| 15 | |
| 16 | // 悬赏 Service 接口 |
| 17 | public interface BountyService { |
| 18 | boolean saveBounty(Bounty bounty); |
| 19 | IPage<Bounty> getBountiesByPage(Page<Bounty> page); |
| 20 | Bounty getBountyById(Long id); |
| 21 | // 新增:发布悬赏(带业务校验) |
| 22 | boolean publishBounty(Bounty bounty); |
| 23 | List<Bounty> getBounties(); //新增直接获得所有悬赏 |
| 24 | } |
| 25 | |
| 26 | |