批注接口 OperationLog


@Documented @Target(METHOD) @Retention(RUNTIME) public @interface OperationLog
操作日志记录注解
从以下版本开始:
2020-03-21 17:03:08
作者:
AaronFung
  • 元素详细资料

    • type

      String type
      类型
      默认值:
      ""
    • refid

      String refid
      refid
      默认值:
      ""
    • value

      String value
      操作功能
      默认值:
      ""
    • module

      String module
      操作模块
      默认值:
      ""
    • comments

      String comments
      备注
      默认值:
      ""
    • param

      boolean param
      是否记录请求参数
      默认值:
      true
    • result

      boolean result
      是否记录返回结果
      默认值:
      true
    • important

      boolean important
      是否为重要操作(等保三级:保留 ≥ 1年)

      高风险操作应标记为 true,包括: 权限变更、角色分配、系统配置修改、数据批量删除等。 标记后,日志在主表保留 365 天,在归档表保留 3 年。

      默认值:
      false