```
feat: 添加公司AI管理平台基础架构 添加了完整的FastAPI后端项目结构,包括: - 环境配置文件(.env.example)和项目说明文档(README.md、AGENTS.md) - Dockerfile用于容器化部署 - 核心基础设施:配置管理、数据库连接、调度器、安全认证 - 模块化设计:AI代理、审批流程、审计日志、业务台账等功能模块 - 支持多数据库连接(主库和遗留系统只读库) - AI适配器支持OpenClaw、Hermes、OpenAI兼容接口 - 飞书集成、报表生成、风险监控等企业级功能 - 完整的依赖管理和测试指南 ```
This commit is contained in:
39
scripts/sample_requests.http
Normal file
39
scripts/sample_requests.http
Normal file
@@ -0,0 +1,39 @@
|
||||
### Health
|
||||
GET http://127.0.0.1:8010/api/v1/health
|
||||
X-API-Key: change-me
|
||||
|
||||
### Create project
|
||||
POST http://127.0.0.1:8010/api/v1/business/projects
|
||||
Content-Type: application/json
|
||||
X-API-Key: change-me
|
||||
|
||||
{
|
||||
"actor": "demo",
|
||||
"data": {
|
||||
"code": "P-2026-001",
|
||||
"name": "公司AI管理系统一期",
|
||||
"owner": "负责人A",
|
||||
"status": "执行中",
|
||||
"budget_amount": 100000,
|
||||
"actual_amount": 25000,
|
||||
"progress_percent": 30,
|
||||
"risk_level": "medium"
|
||||
}
|
||||
}
|
||||
|
||||
### Daily brief
|
||||
GET http://127.0.0.1:8010/api/v1/reports/daily-brief
|
||||
X-API-Key: change-me
|
||||
|
||||
### AI ask
|
||||
POST http://127.0.0.1:8010/api/v1/ai/ask
|
||||
Content-Type: application/json
|
||||
X-API-Key: change-me
|
||||
|
||||
{
|
||||
"actor": "demo",
|
||||
"prompt": "总结当前项目风险。",
|
||||
"context": {
|
||||
"project": "P-2026-001"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user