- 服务端(Gin + modernc.org/sqlite,data/opsxapi.db WAL): - users/tokens/teams/team_members/workspaces 表;注册登录(加盐哈希 + Bearer 令牌) - /api:auth register/login/logout、me(用户+团队+空间)、teams CRUD/邀请成员、workspaces 读写(20MB 上限,成员鉴权) - 前端: - account.ts 客户端 + store 账号态:登录/注册/登出/团队/空间切换 - 顶栏账号区:未登录「登录」按钮;登录后用户胶囊(头像+空间名+已同步/同步中/失败)+ 空间切换菜单 + ⋯(立即同步/团队管理/退出) - 空间模型:本地(localStorage)与云端(SQLite)隔离,切云端空空间自动播种本地数据;云端改动 1.5s 去抖自动同步;切回本地恢复快照 - 登录/注册弹窗 + 团队管理弹窗(建团队、邮箱邀请);vite 代理 /api;docs 新增「账号与团队」页 - 验证:curl E2E(注册/冲突 409/错误密码 401/团队共享写/越权 401)+ 浏览器全链路(注册→播种上云 17KB→云端编辑自动同步→本地快照隔离)
156 lines
3.4 KiB
JSON
156 lines
3.4 KiB
JSON
{
|
|
"productVersion": "1.0",
|
|
"groups": [
|
|
{
|
|
"name": "开始使用",
|
|
"pages": [
|
|
{
|
|
"file": "01-intro.md",
|
|
"slug": "intro",
|
|
"title": "产品介绍",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "02-quickstart.md",
|
|
"slug": "quickstart",
|
|
"title": "快速开始",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "03-interface.md",
|
|
"slug": "interface",
|
|
"title": "界面导览",
|
|
"updated": "2026-09-17"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "请求调试",
|
|
"pages": [
|
|
{
|
|
"file": "04-http.md",
|
|
"slug": "http",
|
|
"title": "发送 HTTP 请求",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "05-auth.md",
|
|
"slug": "auth",
|
|
"title": "接口鉴权",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "06-env.md",
|
|
"slug": "env",
|
|
"title": "环境与变量",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "07-graphql.md",
|
|
"slug": "graphql",
|
|
"title": "GraphQL",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "08-websocket.md",
|
|
"slug": "websocket",
|
|
"title": "WebSocket",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "09-sse.md",
|
|
"slug": "sse",
|
|
"title": "SSE 事件流",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "10-socketio.md",
|
|
"slug": "socketio",
|
|
"title": "Socket.IO",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "11-mqtt.md",
|
|
"slug": "mqtt",
|
|
"title": "MQTT",
|
|
"updated": "2026-09-17"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "数据管理",
|
|
"pages": [
|
|
{
|
|
"file": "12-import.md",
|
|
"slug": "import",
|
|
"title": "数据导入",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "13-export.md",
|
|
"slug": "export",
|
|
"title": "导出与代码生成",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "14-mock.md",
|
|
"slug": "mock",
|
|
"title": "Mock 数据",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "15-manage.md",
|
|
"slug": "manage",
|
|
"title": "集合与历史",
|
|
"updated": "2026-09-17"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "自动化测试与 AI",
|
|
"pages": [
|
|
{
|
|
"file": "16-testing.md",
|
|
"slug": "testing",
|
|
"title": "自动化测试",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "17-ai.md",
|
|
"slug": "ai",
|
|
"title": "AI 助手",
|
|
"updated": "2026-09-17"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "账号与团队",
|
|
"pages": [
|
|
{
|
|
"file": "20-account.md",
|
|
"slug": "account",
|
|
"title": "账号与团队",
|
|
"updated": "2026-09-17"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "参考",
|
|
"pages": [
|
|
{
|
|
"file": "18-server-api.md",
|
|
"slug": "server-api",
|
|
"title": "服务端 API 参考",
|
|
"updated": "2026-09-17"
|
|
},
|
|
{
|
|
"file": "19-faq.md",
|
|
"slug": "faq",
|
|
"title": "常见问题",
|
|
"updated": "2026-09-17"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|