docs(wiki): 同步知识库 — 04-21 经验积累+Skill工具调用修复
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
This commit is contained in:
12
wiki/saas.md
12
wiki/saas.md
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: SaaS 平台
|
||||
updated: 2026-04-17
|
||||
updated: 2026-04-19
|
||||
status: active
|
||||
tags: [module, saas, auth, billing]
|
||||
---
|
||||
@@ -85,11 +85,9 @@ knowledge/ migration/ model_config/ models/ prompt/
|
||||
relay/ role/ scheduled_task/ tasks/ telemetry/ workers/
|
||||
```
|
||||
|
||||
实际 `ls` 显示 17 个目录(含上述 16 + distill_knowledge 等 workers 子模块)。
|
||||
|
||||
### SaaS API 分布
|
||||
|
||||
137 个 `.route()` 调用,13 个路由模块 (main.rs `.merge()` 注册):
|
||||
137 个 `.route()` 调用,13 个路由模块 (main.rs `.merge()` 注册)。
|
||||
|
||||
| 模块 | 路由注册 | 说明 |
|
||||
|------|----------|------|
|
||||
@@ -107,9 +105,9 @@ relay/ role/ scheduled_task/ tasks/ telemetry/ workers/
|
||||
| industry | industry/ | 行业配置管理 (V13 新增) |
|
||||
| migration | migration/ | Schema 迁移 |
|
||||
|
||||
### 数据表 (104 CREATE TABLE)
|
||||
### 数据表 (42 CREATE TABLE)
|
||||
|
||||
20 个 SQL 迁移文件,104 个 `CREATE TABLE` 语句(含临时表、索引表等)。
|
||||
38 个 SQL 迁移文件 (21 up + 17 down),42 个 `CREATE TABLE` 语句。
|
||||
|
||||
核心表: users, agents, conversations, messages, billing_*, knowledge_*, model_configs, roles, permissions, scheduled_tasks, telemetry, agent_templates, saas_schema_version, user_profiles, trajectory_records, industries, account_industries
|
||||
|
||||
@@ -141,7 +139,7 @@ relay/ role/ scheduled_task/ tasks/ telemetry/ workers/
|
||||
| `crates/zclaw-saas/src/billing/` | 计费 |
|
||||
| `crates/zclaw-saas/src/knowledge/` | 知识库 |
|
||||
| `crates/zclaw-saas/src/workers/` | 7 个后台 Worker |
|
||||
| `crates/zclaw-saas/migrations/` | SQL 迁移 (20 文件) |
|
||||
| `crates/zclaw-saas/migrations/` | SQL 迁移 (38 文件) |
|
||||
| `admin-v2/src/pages/` | 17 页管理后台(含 Dashboard/Accounts/Billing/Industries/Knowledge/Prompts/Roles/ScheduledTasks/Config 等) |
|
||||
| `desktop/src/lib/saas-client.ts` | 前端 SaaS API 客户端 |
|
||||
| `desktop/src/store/saasStore.ts` | SaaS 认证状态 |
|
||||
|
||||
Reference in New Issue
Block a user