重构:文件系统模块化架构,优化应用启动流程

This commit is contained in:
lxy
2026-01-28 00:28:54 +08:00
parent 4a9b25a505
commit 8c577f70e7
123 changed files with 32030 additions and 967 deletions
@@ -0,0 +1,90 @@
# 技术栈参考
**状态**:已确定
**最后更新**:2025-01-28
---
## 一、后端技术栈
### 1.1 核心框架
- **语言**:Go 1.25+
- **Web框架**:Wails v2
- **ORM**:GORM
- **数据库**:SQLite(本地存储)
### 1.2 数据库驱动
- **MySQL**:`github.com/go-sql-driver/mysql`
- **Redis**:`github.com/redis/go-redis/v9`
- **MongoDB**:`go.mongodb.org/mongo-driver`
- **SQLite**:`github.com/glebarez/sqlite`
### 1.3 加密
- **密码加密**:AES-256 加密
---
## 二、前端技术栈
### 2.1 核心框架
- **框架**:Vue 3 (Composition API)
- **构建工具**:Vite
- **UI框架**:Arco Design Vue
- **编辑器**:CodeMirror 6
### 2.2 编辑器
- **SQL编辑器**:CodeMirror 6
- **语法高亮**:`@codemirror/lang-sql`
- **JavaScript支持**:`@codemirror/lang-javascript`
### 2.3 类型系统
- **类型检查**:TypeScript
- **类型定义**:集中管理在 `types/` 目录
---
## 三、开发工具
### 3.1 代码规范
- **Go格式化**:gofmt
- **Go检查**:golangci-lint
- **前端检查**:ESLint
### 3.2 构建工具
- **后端构建**:go build
- **前端构建**:Vite
- **打包工具**:Wails
---
## 四、版本要求
### 4.1 Go版本
- **最低版本**:Go 1.21
- **推荐版本**:Go 1.22+
### 4.2 Node版本
- **最低版本**:Node 18
- **推荐版本**:Node 20+
---
## 五、依赖管理
### 5.1 Go依赖
- **管理工具**:go mod
- **模块文件**:`go.mod`
### 5.2 前端依赖
- **管理工具**:npm
- **配置文件**:`package.json`
---
## 六、参考链接
- [Wails文档](https://wails.io/)
- [Arco Design Vue](https://arco.design/vue/docs/start)
- [CodeMirror 6](https://codemirror.net/)
- [GORM文档](https://gorm.io/)