ICompetitionService.java 1.3 KB

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