Private
Public Access
1
0
Files
u-desk/docs/04-功能迭代/GO-DESK-2.数据库客户端/知识库/参考/技术栈.md

91 lines
1.7 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.
# 技术栈参考
**状态**:已确定
**最后更新**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/)