SecurityEventLogService.java 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. package com.zsElectric.boot.system.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  4. import com.zsElectric.boot.system.model.entity.SecurityEventLog;
  5. import com.zsElectric.boot.system.model.query.SecurityEventLogPageQuery;
  6. import com.zsElectric.boot.system.model.vo.SecurityEventLogPageVO;
  7. /**
  8. * 安全事件日志服务。
  9. *
  10. * @author zsElectric
  11. */
  12. public interface SecurityEventLogService extends IService<SecurityEventLog> {
  13. /**
  14. * 记录安全事件。
  15. *
  16. * <p>调用方负责判断事件是否需要记录;本方法只负责统一落库并保证记录失败不影响主业务。</p>
  17. *
  18. * @param eventLog 安全事件日志
  19. * @return 是否记录成功
  20. */
  21. boolean record(SecurityEventLog eventLog);
  22. /**
  23. * Page security event logs.
  24. *
  25. * @param queryParams query params
  26. * @return security event log page
  27. */
  28. Page<SecurityEventLogPageVO> getSecurityEventLogPage(SecurityEventLogPageQuery queryParams);
  29. }