ICompetitionService.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package beilv.competition.service;
  2. import beilv.competition.domain.Competition;
  3. import beilv.stadium.domain.Stadium;
  4. import java.util.List;
  5. /**
  6. * 赛事发布Service接口
  7. *
  8. * @author LG
  9. * @date 2024-12-31
  10. */
  11. public interface ICompetitionService {
  12. /**
  13. * 查询赛事发布
  14. *
  15. * @param id 赛事发布主键
  16. * @return 赛事发布
  17. */
  18. public Competition selectCompetitionById(Integer id);
  19. /**
  20. * 查询赛事发布列表
  21. *
  22. * @param competition 赛事发布
  23. * @return 赛事发布集合
  24. */
  25. public List<Competition> selectCompetitionList(Competition competition);
  26. /**
  27. * 新增赛事发布
  28. *
  29. * @param competition 赛事发布
  30. * @return 结果
  31. */
  32. public int insertCompetition(Competition competition);
  33. /**
  34. * 修改赛事发布
  35. *
  36. * @param competition 赛事发布
  37. * @return 结果
  38. */
  39. public int updateCompetition(Competition competition);
  40. /**
  41. * 批量删除赛事发布
  42. *
  43. * @param ids 需要删除的赛事发布主键集合
  44. * @return 结果
  45. */
  46. public int deleteCompetitionByIds(String ids);
  47. /**
  48. * 删除赛事发布信息
  49. *
  50. * @param id 赛事发布主键
  51. * @return 结果
  52. */
  53. public int deleteCompetitionById(Integer id);
  54. int publishCompetitionById(String id);
  55. int closeCompetitionById(String id);
  56. List<Competition> getCompetitionList();
  57. List<Stadium> getTakePartList(Integer id);
  58. }