feat: 新增隧道管理功能,前后端完整实现

- 新增统一 ApiResponse 类型定义,与 Rust 端响应结构对齐
- 新增 Rust 后端隧道数据库表、模型、命令和 API 接口
- 新增前端隧道类型定义、API 调用、卡片组件和表单弹窗
- 新增中英双语隧道相关国际化文案
- 更新服务器类型定义,引入共享的 ApiResponse
This commit is contained in:
Yuhang Wu
2026-10-13 14:59:16 +08:00
parent 30ddf583e5
commit 3b153e32c9
15 changed files with 1556 additions and 10 deletions
+10
View File
@@ -0,0 +1,10 @@
/**
* 与 Rust 端统一响应结构 `models::ApiResponse<T>` 一一对应的通用类型。
*/
export interface ApiResponse<T = unknown> {
success: boolean
code: number
msg: string
data: T | null
}