Files
insightflow/backend/requirements.txt
OpenClaw Bot e3d7794ae7 Phase 8 Task 1: 多租户 SaaS 架构
- 创建 tenant_manager.py 多租户管理模块
  - 租户管理(CRUD、slug、状态管理)
  - 自定义域名绑定(DNS/文件验证)
  - 品牌白标(Logo、主题色、自定义 CSS/JS)
  - 成员管理(邀请、角色、权限)
  - 资源使用统计和限制检查
  - 租户上下文管理器

- 更新 schema.sql 添加租户相关表
  - tenants, tenant_domains, tenant_branding
  - tenant_members, tenant_permissions, tenant_usage

- 更新 main.py 添加租户 API 端点
  - /api/v1/tenants/* 租户管理
  - /api/v1/tenants/{id}/domains 域名管理
  - /api/v1/tenants/{id}/branding 品牌配置
  - /api/v1/tenants/{id}/members 成员管理
  - /api/v1/tenants/{id}/usage 使用统计
  - /api/v1/resolve-tenant 域名解析

- 创建 test_phase8_task1.py 测试脚本
2026-02-25 12:12:50 +08:00

66 lines
1.1 KiB
Plaintext

# InsightFlow Backend Dependencies
# Web Framework
fastapi==0.109.0
uvicorn[standard]==0.27.0
python-multipart==0.0.6
# HTTP Client
httpx==0.26.0
# Document Processing
PyPDF2==3.0.1
python-docx==1.1.0
# Data Processing
numpy==1.26.3
# Aliyun SDK
aliyun-python-sdk-core==2.14.0
oss2==2.18.5
# Utilities
python-dotenv==1.0.0
# Export functionality
pandas==2.2.0
openpyxl==3.1.2
reportlab==4.0.9
cairosvg==2.7.1
# Neo4j Graph Database
neo4j==5.15.0
# API Documentation (Swagger/OpenAPI)
fastapi-offline-swagger==0.1.0
# Phase 7: Workflow Automation
apscheduler==3.10.4
# Phase 7: Multimodal Support
ffmpeg-python==0.2.0
pillow==10.2.0
opencv-python==4.9.0.80
pytesseract==0.3.10
# Phase 7 Task 7: Plugin & Integration
webdav4==0.9.8
urllib3==2.2.0
# Phase 7: Plugin & Integration
beautifulsoup4==4.12.3
webdavclient3==3.14.6
# Phase 7 Task 3: Security & Compliance
cryptography==42.0.0
# Phase 7 Task 6: Advanced Search & Discovery
sentence-transformers==2.5.1
# Phase 7 Task 8: Performance Optimization & Scaling
redis==5.0.1
celery==5.3.6
# Phase 8: Multi-Tenant SaaS
# (No additional dependencies required - uses built-in Python modules)