feat: 修复接口参数并改为form-data格式
- 添加缺失的认证参数:appId, appSecretCode, role - 修复 analysisType 和 departmentCode 参数 - 将所有接口改为使用 Form 参数(form-data 格式) - 更新服务层支持字典参数 - 更新所有测试代码 - 所有测试通过(7/7)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
from fastapi import BackgroundTasks, UploadFile
|
||||
from models.request import FetchInnerFlowRequest
|
||||
from utils.response_builder import ResponseBuilder
|
||||
from config.settings import settings
|
||||
from typing import Dict, List
|
||||
from typing import Dict, List, Union
|
||||
import time
|
||||
from datetime import datetime
|
||||
|
||||
@@ -133,11 +132,11 @@ class FileService:
|
||||
"successResponse": True,
|
||||
}
|
||||
|
||||
def fetch_inner_flow(self, request: FetchInnerFlowRequest) -> Dict:
|
||||
def fetch_inner_flow(self, request: Union[Dict, object]) -> Dict:
|
||||
"""拉取行内流水(模拟无数据场景)
|
||||
|
||||
Args:
|
||||
request: 拉取流水请求
|
||||
request: 拉取流水请求(可以是字典或对象)
|
||||
|
||||
Returns:
|
||||
流水响应字典
|
||||
|
||||
Reference in New Issue
Block a user