This commit is contained in:
Tizian.Breuch
2025-07-22 17:09:38 +02:00
parent 5568574d9c
commit 0cbf088747
16 changed files with 429 additions and 57 deletions

40
README.md Normal file
View File

@@ -0,0 +1,40 @@
ShopSolution.sln
├───Webshop.Api
│ ├───Controllers
│ │ ├───Admin // Controller für Admin-Dashboard (z.B. AdminProductsController, AdminUsersController)
│ │ ├───Auth // Controller für Login/Register (AuthController)
│ │ ├───Customer // Controller für eingeloggte Kunden (z.B. OrdersController, ProfileController)
│ │ └───Public // Controller für öffentliche/nicht authentifizierte Zugriffe (z.B. ProductsController)
│ ├───appsettings.json
│ ├───Dockerfile
│ └───Program.cs
├───Webshop.Application
│ ├───DTOs
│ │ ├───Auth // DTOs für Authentifizierungs-Flows
│ │ ├───Users // DTOs für Benutzerdetails
│ │ ├───ProductDto.cs // Standard-Produkt-DTO (für öffentliche Ansicht)
│ │ └───AdminProductDto.cs // Produkt-DTO mit Admin-spezifischen Details (z.B. Einkaufspreis)
│ ├───Services
│ │ ├───Admin // Geschäftslogik für Admin-Dashboard
│ │ │ ├───AdminProductService.cs
│ │ │ └───AdminUserService.cs
│ │ ├───Auth // Geschäftslogik für Authentifizierung
│ │ │ ├───IAuthService.cs
│ │ │ └───AuthService.cs
│ │ ├───Customer // Geschäftslogik für eingeloggte Kunden
│ │ │ └───// CustomerOrderService.cs (Platzhalter)
│ │ │ └───// CustomerProfileService.cs (Platzhalter)
│ │ └───Public // Geschäftslogik für öffentliche/nicht authentifizierte Features
│ │ └───ProductCatalogService.cs // (ehemals ProductService.cs)
├───Webshop.Domain
│ ├───Entities // Ihre Kerngeschäftsobjekte (Product, Category, Customer, Order, etc.)
│ │ └───Address.cs // (Adress.cs umbenannt)
│ ├───Enums // Ihre Enumerationen
│ ├───Interfaces // Ihre Repository-Interfaces (IProductRepository, etc.)
└───Webshop.Infrastructure
├───Data // Ihr DbContext
├───Migrations // Von EF Core generierte Migrationsdateien
└───Repositories // Ihre Repository-Implementierungen (ProductRepository etc.)