refactor: 重构项目结构并优化类型定义

- 移除extension模块,将功能迁移至node-agent
- 修复类型导出问题,使用export type明确类型导出
- 统一数据库连接方式,从直接导入改为使用config/database
- 更新文档中的项目结构描述
- 添加多个服务的实用方法,如getForecast、getBalances等
- 修复类型错误和TS1205警告
- 优化RedisService调用方式
- 添加新的实体类型定义
- 更新审计日志格式,统一字段命名
This commit is contained in:
2026-03-21 15:04:06 +08:00
parent 888d3844f3
commit 15ee1758f5
286 changed files with 9110 additions and 21453 deletions

View File

@@ -62,8 +62,7 @@ Crawlful Hub 是一个全自动化的跨境电商运营平台,集成了商品
### 模块结构
- **dashboard**: 前端管理控制台
- **server**: 后端服务
- **extension**: 浏览器扩展
- **node-agent**: 节点代理
- **node-agent**: 节点代理 (Playwright 自动化)
- **scripts**: 脚本工具
- **docs**: 项目文档
@@ -85,8 +84,8 @@ npm install
cd ../dashboard
npm install
# 扩展依赖
cd ../extension
# Node Agent 依赖
cd ../node-agent
npm install
```
@@ -108,9 +107,9 @@ npm run dev
cd ../dashboard
npm run dev
# 构建扩展
cd ../extension
npm run build
# 启动 Node Agent
cd ../node-agent
npm run dev
```
## 📚 文档