注册征信解析Mock路由并补充说明

This commit is contained in:
wkc
2026-03-23 15:21:51 +08:00
parent d7f34f009d
commit 97b3783c53
3 changed files with 55 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import argparse
import os
from fastapi import FastAPI
from routers import api
from routers import api, credit_api
from config.settings import settings
# 创建 FastAPI 应用实例
@@ -16,7 +16,7 @@ app = FastAPI(
description="""
## 流水分析 Mock 服务器
模拟流水分析平台的 7 个核心接口,用于开发和测试。
模拟流水分析平台的 7 个核心接口,并补充征信解析接口,用于开发和测试。
### 主要功能
@@ -26,6 +26,7 @@ app = FastAPI(
- **解析状态** - 轮询检查文件解析状态
- **文件删除** - 批量删除上传的文件
- **流水查询** - 分页获取银行流水数据
- **征信解析** - 上传 HTML 并返回结构化征信 payload
### 错误模拟
@@ -39,6 +40,7 @@ app = FastAPI(
2. 上传文件: POST /watson/api/project/remoteUploadSplitFile
3. 轮询解析状态: POST /watson/api/project/upload/getpendings
4. 获取流水: POST /watson/api/project/getBSByLogId
5. 征信解析: POST /xfeature-mngs/conversation/htmlEval
""",
version=settings.APP_VERSION,
docs_url="/docs",
@@ -47,6 +49,7 @@ app = FastAPI(
# 包含 API 路由
app.include_router(api.router, tags=["流水分析接口"])
app.include_router(credit_api.router, tags=["征信解析接口"])
@app.get("/", summary="服务根路径")