修改文件结构

This commit is contained in:
编码猿
2025-09-16 22:46:14 +08:00
parent 715d3ff0bb
commit c3d4b7e1e4
34 changed files with 55 additions and 6 deletions

34
doc/代码存放位置.md Normal file
View File

@@ -0,0 +1,34 @@
### 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/app/router/productRoutes.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`(代码中引用)