# Approval Flow Service
审核流服务 - 审核规则管理、审核流程、审核日志

## 基本信息
- **服务端口**: 8086
- **服务名称**: approval-flow-service
- **模块分支**: 业务域/功能模块
- **数据库**: erp_db

## 功能清单
1. 审批流程编排
2. 审批规则配置
3. 审批记录

## API接口
| 方法 | 路径 | 描述 |
|------|------|------|
| GET | /api/audit-rules/{id} | AuditRuleController接口 |
| GET | /api/audit-rules/fields | AuditRuleController接口 |
| GET | /api/audit-rules/types | AuditRuleController接口 |
| POST | /api/audit-rules/{id}/duplicate | AuditRuleController接口 |
| POST | /api/audit-rules/{id}/test | AuditRuleController接口 |
| POST | /api/audit-rules/simulate | AuditRuleController接口 |
| PUT | /api/audit-rules/{id} | AuditRuleController接口 |
| PUT | /api/audit-rules/batch/toggle-active | AuditRuleController接口 |
| PUT | /api/audit-rules/reorder | AuditRuleController接口 |
| DELETE | /api/audit-rules/{id} | AuditRuleController接口 |
| DELETE | /api/audit-rules/batch | AuditRuleController接口 |
| GET | /api/audit-logs/{id} | AuditLogController接口 |
| GET | /api/audit-logs/stats | AuditLogController接口 |

## 数据库表
| 表名 | 说明 |
|------|------|
| audit_rules | AuditRule |
| audit_logs | AuditLog |

## 配置文件
- application.yml: 应用配置

## 启动方式
```bash
mvn clean package
java -jar target/approval-flow-service.jar
```
