LogService.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package jnpf.service;
  2. import jnpf.base.UserInfo;
  3. import jnpf.base.service.SuperService;
  4. import jnpf.entity.LogEntity;
  5. import jnpf.model.PaginationLogModel;
  6. import java.util.List;
  7. import java.util.Set;
  8. /**
  9. * 系统日志
  10. *
  11. * @author JNPF开发平台组
  12. * @version V3.1.0
  13. * @copyright 引迈信息技术有限公司
  14. * @date 2019年9月27日 上午9:18
  15. */
  16. public interface LogService extends SuperService<LogEntity> {
  17. /**
  18. * 列表
  19. *
  20. * @param category 日志分类
  21. * @param paginationTime 分页条件
  22. * @return
  23. */
  24. List<LogEntity> getList(int category, PaginationLogModel paginationTime, Boolean filterUser);
  25. /**
  26. * 信息
  27. *
  28. * @param id 主键值
  29. * @return
  30. */
  31. LogEntity getInfo(String id);
  32. /**
  33. * 删除
  34. * @param ids
  35. * @return
  36. */
  37. boolean delete(String[] ids);
  38. /**
  39. * 写入日志
  40. *
  41. * @param userId 用户Id
  42. * @param userName 用户名称
  43. * @param abstracts 摘要
  44. */
  45. void writeLogAsync(String userId, String userName, String abstracts, long requestDuration);
  46. /**
  47. * 写入日志
  48. *
  49. * @param userId 用户Id
  50. * @param userName 用户名称
  51. * @param abstracts 摘要
  52. */
  53. void writeLogAsync(String userId, String userName, String abstracts, UserInfo userInfo, int loginMark, Integer loginType, long requestDuration);
  54. /**
  55. * 请求日志
  56. *
  57. * @param logEntity 实体对象
  58. */
  59. void writeLogAsync(LogEntity logEntity);
  60. /**
  61. * 请求日志
  62. */
  63. void deleteHandleLog(String type, Integer userOnline,String dataInterfaceId);
  64. /**
  65. * 获取操作模块名
  66. *
  67. * @return
  68. */
  69. Set<String> queryList();
  70. }