How hauqianq/be_swp391_goodsexchange works
GoodsExchange is a .NET backend for university students to list school supplies and exchange them. The main workflow is to browse or manage product listings, submit an exchange request, and progress the request through participant decisions; the exchange service also updates product status and sends an email. The API exposes additional account, category, rating, report, role, and transaction capabilities. The README names SQL Server and the source shows the EF Core context. Some service wiring and unsampled controller behavior are not shown, so those relationships are omitted.
Main entry points: ExchangeRequestService.cs Exchange workflow · ProductService.cs Product services · GoodsExchangeDbContext.cs EF Core context · UserController.cs User endpoints
Components 18
HTTP API
- API endpoints
GoodsExchange.API/Controllers - User endpoints
GoodsExchange.API/Controllers/UserController.cs - Product endpoints
GoodsExchange.API/Controllers/ProductController.cs - Exchange endpoints
GoodsExchange.API/Controllers/ExchangeController.cs - Other endpoints
GoodsExchange.API/Controllers
Listings and exchange
- Product services
GoodsExchange.BusinessLogic/Services/Implementation/ProductService.cs - Exchange workflow
GoodsExchange.BusinessLogic/Services/Implementation/ExchangeRequestService.cs - Product listings
GoodsExchange.Data/Models/Product.cs - Exchange requests
GoodsExchange.Data/Models/ExchangeRequest.cs - Categories
GoodsExchange.Data/Models/Category.cs
Accounts and services
- Account services
GoodsExchange.BusinessLogic/Services/Implementation/UserService.cs - Supporting services
GoodsExchange.BusinessLogic/Services/Implementation - Email delivery
GoodsExchange.BusinessLogic/Services/Implementation/EmailService.cs - Image storage
GoodsExchange.BusinessLogic/Services/Implementation/FirebaseStorageService.cs - User accounts
GoodsExchange.Data/Models/User.cs
Data persistence
- EF Core context
GoodsExchange.Data/Context/GoodsExchangeDbContext.cs - SQL Server
Other components
- Students
Connections 12
- Students → Product endpoints: browse listings
GoodsExchange.API/Controllers/ProductController.cs - Students → User endpoints: manage account
GoodsExchange.API/Controllers/UserController.cs - Students → Exchange endpoints: request exchange
GoodsExchange.API/Controllers/ExchangeController.cs - User endpoints → Account services: calls services
GoodsExchange.API/Controllers/UserController.cs - Product endpoints → Product services: calls services
GoodsExchange.API/Controllers/ProductController.cs - Exchange endpoints → Exchange workflow: calls services
GoodsExchange.API/Controllers/ExchangeController.cs - Product services → EF Core context: reads and writes
GoodsExchange.BusinessLogic/Services/Implementation/ProductService.cs - Exchange workflow → EF Core context: reads and writes
GoodsExchange.BusinessLogic/Services/Implementation/ExchangeRequestService.cs - Exchange workflow → Account services: gets participants
GoodsExchange.BusinessLogic/Services/Implementation/ExchangeRequestService.cs - Exchange workflow → Product services: updates status
GoodsExchange.BusinessLogic/Services/Implementation/ExchangeRequestService.cs - Exchange workflow → Email delivery: sends request email
GoodsExchange.BusinessLogic/Services/Implementation/ExchangeRequestService.cs - EF Core context → SQL Server: persists data
GoodsExchange.Data/Context/GoodsExchangeDbContext.cs