erp-java/services/audit-log-service/README.md

55 lines
2.0 KiB
Markdown

# Audit Log Service
操作日志审计服务 - 审计日志记录、查询统计、导出、敏感操作告警、合规支持
## 基本信息
- **服务端口**: 8098
- **服务名称**: audit-log-service
- **模块分支**: 业务域/功能模块
- **数据库**: erp_db
## 功能清单
1. 操作日志记录
2. 日志查询
3. 审计追踪
## API接口
| 方法 | 路径 | 描述 |
|------|------|------|
| GET | /api/audit-log/{id} | AuditLogController接口 |
| GET | /api/audit-log/statistics | AuditLogController接口 |
| GET | /api/audit-log/trend | AuditLogController接口 |
| GET | /api/audit-log/sensitive/rules | AuditLogController接口 |
| GET | /api/audit-log/compliance/report/{id} | AuditLogController接口 |
| GET | /api/audit-log/compliance/report/no/{reportNo} | AuditLogController接口 |
| GET | /api/audit-log/compliance/summary | AuditLogController接口 |
| GET | /api/audit-log/compliance/risk-assessment | AuditLogController接口 |
| POST | /api/audit-log/page | AuditLogController接口 |
| POST | /api/audit-log/export/csv | AuditLogController接口 |
| POST | /api/audit-log/export/excel | AuditLogController接口 |
| POST | /api/audit-log/sensitive/rules | AuditLogController接口 |
| POST | /api/audit-log/compliance/report | AuditLogController接口 |
| POST | /api/audit-log/compliance/reports | AuditLogController接口 |
| PUT | /api/audit-log/{id} | AuditLogController接口 |
| PUT | /api/audit-log/compliance/report/{id}/review | AuditLogController接口 |
| DELETE | /api/audit-log/{id} | AuditLogController接口 |
| DELETE | /api/audit-log/sensitive/rules/{id} | AuditLogController接口 |
| DELETE | /api/audit-log/cleanup | AuditLogController接口 |
## 数据库表
| 表名 | 说明 |
|------|------|
| sensitive_operation_rule | SensitiveOperationRule |
| sensitive_alert_record | SensitiveAlertRecord |
| audit_log | AuditLog |
| compliance_report | ComplianceReport |
## 配置文件
- bootstrap.yml: Nacos配置
- application.yml: 应用配置
## 启动方式
```bash
mvn clean package
java -jar target/audit-log-service.jar
```