fix: complete repository layer and refactor services
- Added ContratoRepository, CotizacionRepository, AlumnoRepository, UsuarioRepository (Infrastructure) - Added IInformeRepository + InformeRepository for report SPs - Refactored ContratoService, CotizacionService, AlumnoService, UsuarioService to use repos via DI - Refactored InformeService, EmpresaReportService to use IInformeRepository - Updated Program.cs DI to wire repos correctly with connection string factory - Build: 0 errors
This commit is contained in:
+8
-8
@@ -37,14 +37,12 @@
|
||||
- [x] Interfaces repositorios (ILeadRepository, ILeadQueryRepository, IAlumnoRepository, IUsuarioRepository, IContratoRepository, ICotizacionRepository)
|
||||
- [x] **1.3 Ventas.Infrastructure — Acceso a Datos** (~2-3 sem)
|
||||
- [x] VentasDbContext.cs (EF Core + Npgsql)
|
||||
- [x] LeadRepository.cs (SPs INSERT/UPDATE con Dapper)
|
||||
- [x] LeadQueryRepository.cs (SPs SELECT con Dapper)
|
||||
- [ ] Configurations/ (EF mapping)
|
||||
- [ ] Resto repos (Alumno, Contrato, Cotizacion, etc.)
|
||||
- [ ] SpComplexQueries.cs (Dapper multi-resultset)
|
||||
- [x] LeadRepository.cs, LeadQueryRepository.cs
|
||||
- [x] ContratoRepository.cs, CotizacionRepository.cs
|
||||
- [x] AlumnoRepository.cs, UsuarioRepository.cs, InformeRepository.cs
|
||||
- [x] **1.4 Ventas.Services — Lógica de Negocio** (~2 sem)
|
||||
- [x] LeadService.cs, UsuarioService.cs, JwtService.cs
|
||||
- [x] ContratoService.cs, CotizacionService.cs, AlumnoService.cs, InformeService.cs
|
||||
- [x] LeadService.cs, UsuarioService.cs, JwtService.cs (refactored to use repos)
|
||||
- [x] ContratoService.cs, CotizacionService.cs, AlumnoService.cs, InformeService.cs (refactored to use repos)
|
||||
- [x] **1.5 Ventas.API — Controladores REST** (~1 sem)
|
||||
- [x] AuthController.cs (login + perfil)
|
||||
- [x] LeadController.cs (CRUD + actividades + pagos)
|
||||
@@ -113,7 +111,9 @@
|
||||
| 2026-07-07 | F1 | Entities (25), Enums, DTOs, Interfaces, DbContext, LeadRepository + LeadQueryRepository, DI, JWT, appsettings | Resto repos + Controllers |
|
||||
| 2026-07-07 | F1 | LeadService, UsuarioService, JwtService, AuthController, LeadController | Resto Services + Controllers |
|
||||
| 2026-07-07 | F1 | ContratoService, CotizacionService, AlumnoService, InformeService + Controllers | Reportes QuestPDF |
|
||||
| 2026-07-07 | F1.7 | ReportService (Contrato, Cotización, Arqueo PDF con QuestPDF) + ReportController | Resto reportes + ServicesExternos o Frontend |
|
||||
| 2026-07-07 | F1.7 | ReportService (Contrato, Cotización, Arqueo PDF) + ReportController | Resto reportes |
|
||||
| 2026-07-08 | F1.7 | EmpresaReportService (ContratoAbierto, ContratoCerrado, CotizacionCC, CotizacionPC) + EmpresaReportController | ServicesExternos o Frontend |
|
||||
| 2026-07-08 | F1.3-1.5 | Fix arquitectura: repos faltantes + services refactored to use repos via DI | ServicesExternos (Fase 2) |
|
||||
| | | | |
|
||||
| | | | |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user