From c0d11dac469251c71b036c757c788615285c9683 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 15 十一月 2024 10:57:10 +0800
Subject: [PATCH] 毕昇对话历史只返回了一条修正,按时间正序排列吧,json乱码修正
---
app/models/user.py | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/app/models/user.py b/app/models/user.py
index 3335170..ab53067 100644
--- a/app/models/user.py
+++ b/app/models/user.py
@@ -1,3 +1,5 @@
+from typing import Optional
+
from pydantic import BaseModel
@@ -21,3 +23,25 @@
token_type: str
bisheng_token: str
ragflow_token: str
+
+class PageParameter(BaseModel):
+ page_index: int
+ page_size: int
+ keyword: Optional[str] = ""
+
+class UserStatus(BaseModel):
+ userId: int
+ status: Optional[str] = ""
+ pwd: Optional[str] = ""
+
+class UserInfo(BaseModel):
+ userId: Optional[int] = 0
+ userName: Optional[str] = ""
+ loginName: Optional[str] = ""
+ phone: Optional[str] = ""
+ pwd: Optional[str] = ""
+ email: str
+ roles: list
+ groups: Optional[list] = []
+
+
--
Gitblit v1.8.0