HaniBlindBox/.kiro/steering/structure.md
2026-01-03 14:47:28 +08:00

75 lines
3.8 KiB
Markdown
Raw 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.

# 项目结构
```
/
├── docs/ # 项目文档
│ ├── API接口文档.md
│ ├── API迁移计划.md
│ ├── API迁移详细文档/ # 分阶段迁移文档
│ ├── 数据库迁移计划.md
│ ├── 数据库迁移详细文档/
│ ├── 业务流程图.md
│ ├── 系统架构图.md
│ └── 技术重构评估报告.md
├── honey_box/ # 前端 UniApp 项目
│ ├── pages/ # 页面文件
│ │ ├── shouye/ # 首页模块(抽奖详情、排行榜等)
│ │ ├── user/ # 用户中心登录、订单、VIP等
│ │ ├── mall/ # 商城模块
│ │ ├── infinite/ # 福利模块(签到、奖励等)
│ │ ├── hegui/ # 盒柜模块(中奖物品管理)
│ │ └── other/ # 其他页面(地址、支付等)
│ ├── components/ # 组件库
│ │ ├── detail-lucky/ # 抽奖相关组件
│ │ ├── pay-dialog/ # 支付弹窗
│ │ ├── lucky-canvas/ # 抽奖画布
│ │ └── ...
│ ├── common/ # 公共模块
│ │ ├── env.js # 环境配置API地址
│ │ ├── request.js # 网络请求封装
│ │ ├── config.js # 全局配置
│ │ ├── platform/ # 多平台适配
│ │ └── server/ # API 接口定义
│ ├── package/ # 分包模块
│ └── uni_modules/ # uni-app 插件
├── server/
│ ├── C#/HoneyBox/ # .NET 后端(新版)
│ │ └── src/
│ │ ├── HoneyBox.Api/ # Web API 层
│ │ │ ├── Controllers/ # API 控制器
│ │ │ └── Filters/ # 过滤器
│ │ ├── HoneyBox.Core/ # 业务逻辑层
│ │ │ ├── Services/ # 业务服务
│ │ │ ├── Interfaces/ # 接口定义
│ │ │ └── Mappings/ # 对象映射配置
│ │ ├── HoneyBox.Infrastructure/ # 基础设施层
│ │ │ ├── Cache/ # 缓存实现
│ │ │ ├── External/ # 外部服务集成
│ │ │ └── Modules/ # Autofac 模块
│ │ └── HoneyBox.Model/ # 数据模型层
│ │ ├── Entities/ # 数据库实体
│ │ ├── Models/ # DTO/ViewModel
│ │ ├── Data/ # DbContext
│ │ └── Base/ # 基类
│ │
│ ├── php/ # PHP 后端(旧版)
│ │ ├── app/
│ │ │ ├── api/ # API 接口
│ │ │ ├── admin/ # 管理后台
│ │ │ └── common/ # 公共模块
│ │ ├── config/ # 配置文件
│ │ └── public/ # 入口文件
│ │
│ └── scripts/ # 数据迁移脚本
│ ├── migrate_*.js # Node.js 迁移脚本
│ └── validate_*.sql # SQL 验证脚本
```
## 关键文件
- `honey_box/common/env.js` - 前端环境配置,切换 API 地址
- `honey_box/pages.json` - 页面路由配置
- `server/C#/HoneyBox/src/HoneyBox.Api/appsettings.json` - 后端配置
- `server/C#/HoneyBox/src/HoneyBox.Model/Data/HoneyBoxDbContext.cs` - 数据库上下文