[changes] 1.Use structured logs;

2.Align the type and default value of "end_user_id" with the semantic meaning of "required".
This commit is contained in:
lanceyq
2026-03-04 12:17:34 +08:00
parent c3d7963fe0
commit c488eb0cd0
2 changed files with 6 additions and 3 deletions

View File

@@ -664,7 +664,7 @@ async def get_knowledge_type_stats_api(
@router.get("/analytics/interest_distribution/by_user", response_model=ApiResponse)
async def get_interest_distribution_by_user_api(
end_user_id: Optional[str] = Query(None, description="用户ID必填"),
end_user_id: str = Query(..., description="用户ID必填"),
limit: int = Query(5, le=5, description="返回兴趣标签数量限制最多5个"),
language_type: str = Header(default=None, alias="X-Language-Type"),
current_user: User = Depends(get_current_user),