Files
DDDMicroFrontend/doc/代码存放位置.md
2025-09-17 01:52:10 +08:00

35 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 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`(代码中引用)