Files
urbanLifeline/difyPlugin/README.md
2025-12-30 13:38:32 +08:00

39 lines
763 B
Markdown

# DifyPlugin
Dify插件服务 - 基于FastAPI构建
## 快速开始
### 安装依赖
```bash
pip install -r requirements.txt
```
### 运行服务
```bash
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
```
### API文档
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
## 项目结构
```
difyPlugin/
├── app/
│ ├── main.py # 应用入口
│ ├── config.py # 配置管理
│ ├── api/v1/ # API路由
│ ├── schemas/ # Pydantic数据模型
│ ├── services/ # 业务逻辑
│ ├── core/ # 核心功能
│ └── utils/ # 工具函数
├── requirements.txt
└── README.md
```