finalize medical consultation agent backend

This commit is contained in:
刘金宝
2026-06-03 15:51:46 +08:00
parent 93d9e1c6a5
commit eb43573a44
33 changed files with 1063 additions and 281 deletions
+12 -2
View File
@@ -22,9 +22,11 @@ async def auth_me(ctx: UserContext = Depends(get_user_context)):
phone=profile.get("phone"),
avatar=profile.get("avatar"),
gender=profile.get("gender"),
institution=profile.get("institution"),
institution=profile.get("institution") or profile.get("institution_id"),
institution_id=profile.get("institution_id") or profile.get("institution"),
institution_name=profile.get("institution_name"),
department=profile.get("department"),
department=profile.get("department") or profile.get("department_id"),
department_id=profile.get("department_id") or profile.get("department"),
department_name=profile.get("department_name"),
title_name=profile.get("title_name"),
major=profile.get("major"),
@@ -38,5 +40,13 @@ async def auth_me(ctx: UserContext = Depends(get_user_context)):
total_case_count=profile.get("total_case_count"),
current_level=profile.get("current_level"),
status=profile.get("status"),
last_login=profile.get("last_login"),
last_login_time=profile.get("last_login_time"),
is_superuser=profile.get("is_superuser"),
is_staff=profile.get("is_staff"),
is_active=profile.get("is_active"),
date_joined=profile.get("date_joined"),
created_at=profile.get("created_at"),
updated_at=profile.get("updated_at"),
)
)