How letruonghuy/fraudriskmgmt works
This repository implements a fraud-risk management API backed by SQL Server, with a separate Python prediction service. An officer submits a transaction for scoring; the API records it and creates an alert when risk meets its threshold. Alerts can be assigned or resolved, and cases support investigation and manager approval. Managers also have dashboard reporting, while login issues role-bearing JWTs. The tree indicates additional product areas, but excerpts are partial and no README is provided, so some subsystem wiring is not shown.
Main entry points: AppDbContext.cs Application database · CaseController.cs Case workflow · AuthController.cs Login API · TransactionController.cs Transaction API
Components 13
Management API
- Application database
backend/FraudRiskMgmt.API/FraudRiskMgmt.API/Data/AppDbContext.cs
Risk Scoring
- Transaction API
backend/FraudRiskMgmt.API/FraudRiskMgmt.API/Controllers/TransactionController.cs - ML client
backend/FraudRiskMgmt.API/FraudRiskMgmt.API/Services/MLService.cs - Prediction API
fraud-detection-ml/api/main.py - Random forest
fraud-detection-ml/models/random_forest.pkl
Alert and Case Workflow
- Alert management
backend/FraudRiskMgmt.API/FraudRiskMgmt.API/Controllers/AlertController.cs - Case workflow
backend/FraudRiskMgmt.API/FraudRiskMgmt.API/Controllers/CaseController.cs
Identity and Audit
- Login API
backend/FraudRiskMgmt.API/FraudRiskMgmt.API/Controllers/AuthController.cs - JWT service
backend/FraudRiskMgmt.API/FraudRiskMgmt.API/Services/JwtService.cs - Audit logging
backend/FraudRiskMgmt.API/FraudRiskMgmt.API/Services/AuditLogService.cs
Reporting
- Dashboard API
backend/FraudRiskMgmt.API/FraudRiskMgmt.API/Controllers/DashboardController.cs
Other components
- Officer
- Manager
Connections 20
- Officer → Transaction API: submits transaction
- Transaction API → ML client: requests score
- ML client → Prediction API: posts prediction
- Prediction API → Random forest: loads model
- Prediction API → ML client: returns score
- Transaction API → Application database: saves transaction and alert
- Manager → Alert management: manages alerts
- Officer → Alert management: reviews alerts
- Alert management → Application database: queries and updates
- Officer → Case workflow: investigates cases
- Manager → Case workflow: decides proposals
- Case workflow → Application database: reads and updates workflow
- Case workflow → Audit logging: records actions
- Officer → Login API: logs in
- Manager → Login API: logs in
- Login API → Application database: looks up user
- Login API → JWT service: generates token
- Manager → Dashboard API: views metrics
- Dashboard API → Application database: aggregates records
- Audit logging → Application database: writes audit log