OperateLogService.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package com.huaxu.service;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.huaxu.dto.OperateLogDto;
  4. import com.huaxu.entity.OperateLogEntity;
  5. import java.util.List;
  6. /**
  7. * @description 操作日志接口
  8. * @auto wangli
  9. * @data 2020-10-27 8:59
  10. */
  11. public interface OperateLogService {
  12. /**
  13. * 通过ID查询单条数据
  14. *
  15. * @param id 主键
  16. * @return 实例对象
  17. */
  18. OperateLogDto selectById(Integer id);
  19. /**
  20. * 查询全部
  21. *
  22. * @return 对象列表
  23. */
  24. List<OperateLogDto> selectAll();
  25. /**
  26. * 通过实体作为筛选条件查询
  27. *
  28. * @param operateLogDto 实例对象
  29. * @return 对象列表
  30. */
  31. List<OperateLogDto> selectList(OperateLogDto operateLogDto);
  32. /**
  33. * 新增数据
  34. *
  35. * @param operateLogEntity 实例对象
  36. * @return 影响行数
  37. */
  38. int insert(OperateLogEntity operateLogEntity);
  39. /**
  40. * 批量新增
  41. *
  42. * @param loginLogEntities 实例对象的集合
  43. * @return 影响行数
  44. */
  45. int batchInsert(List<OperateLogEntity> loginLogEntities);
  46. /**
  47. * 修改数据
  48. *
  49. * @param operateLogEntity 实例对象
  50. * @return 影响行数
  51. */
  52. int update(OperateLogEntity operateLogEntity);
  53. /**
  54. * 通过主键删除数据
  55. *
  56. * @param id 主键
  57. * @return 影响行数
  58. */
  59. int deleteById(Integer id);
  60. /**
  61. * 查询总数据数
  62. *
  63. * @return 数据总数
  64. */
  65. int count();
  66. IPage<OperateLogDto> selectPage(IPage<OperateLogDto> page, OperateLogDto operateLogDto);
  67. }