Update README.md

This commit is contained in:
coder water
2022-03-16 09:27:42 +08:00
committed by GitHub
parent 5285f56548
commit e7561baa2e

View File

@@ -1,7 +1,7 @@
# operation-log-parent
操作日志生成组件(操作日志又称系统变更日志、审计日志等)
#
#
不管是B端还是C端系统在用户使用过程中都会涉及到对相关资源进行更新或者删除的操作如电商系统中商家修改商品售价OA系统中管理员修改用户的权限等数据库中一般记录的都是资源的最后修改时间和修改人。第一是可读性比较差只能是程序员能够查询使用第二是缺少修改前的值无法对数据进行追溯。
# 问题
1. 如何生成可读性高的操作日志
@@ -132,29 +132,15 @@ public static class MarketOperatorGetServiceImpl implements OperatorGetService {
```
@Data
public class User {
/**
* 用户id
*/
//用户id
private Integer id;
/**
* 用户所属部门id
*/
//用户所属部门id
private Long departmentId;
/**
* 用户名称
*/
//用户名称
private String name;
/**
* 用户年龄
*/
//用户年龄
private Integer age;
/**
* 用户状态
* 0-禁用1-启用
*/
//用户状态0-禁用1-启用
private Integer status;
private Date createdTime;