1.2 KiB
1.2 KiB
1. 领域层(Domains)
- 实体类:
src/domains/product/domain/entities/Product.ts - 仓储接口(端口):
src/domains/product/ports/repositories/ProductRepository.ts
2. 基础设施层(Infrastructure)
- HTTP仓储实现:
src/domains/product/infrastructure/api/HttpProductRepository.ts - 通用HTTP客户端:
src/shared/infra/http/httpClient.ts
3. 应用服务层(Application)
- 商品应用服务:
src/domains/product/application/services/ProductApplicationService.ts
4. 依赖注入配置
- 商品领域DI配置:
src/app/di/productModule.ts
5. 路由配置(交付层)
- 商品路由:
src/features/product/router/index.ts - 主路由配置:
src/app/router/index.ts
6. 功能实现(交付层)
- 商品列表页面:
src/features/product/views/ProductList.tsx - 商品详情页面:
src/features/product/views/ProductDetail.tsx - 商品卡片组件:
src/features/product/components/ProductCard.tsx
7. 通用UI组件(交付层)
- 分页组件:
src/app/components/Pagination.tsx - 加载组件:
src/app/components/Loading.tsx(代码中引用) - 按钮组件:
src/app/components/Button.tsx(代码中引用)