fix(login): 增加返回user_id

This commit is contained in:
Aqr-K
2024-10-19 11:36:03 +08:00
parent 6f299b3255
commit 5d1ccef5a2
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -10,6 +10,8 @@ class Token(BaseModel):
token_type: str
# 超级用户
super_user: bool
# 用户ID
user_id: int
# 用户名
user_name: str
# 头像