From f64f37ba5f1c4702c73bd5f825f6cdf17cd9e493 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 05 十二月 2024 15:13:41 +0800 Subject: [PATCH] 配置ip取环境变量的 --- app/models/user.py | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/app/models/user.py b/app/models/user.py index 3335170..daff50c 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -1,9 +1,12 @@ +from typing import Optional + from pydantic import BaseModel class UserCreate(BaseModel): username: str password: str + email: Optional[str] = "" # 瀹氫箟璇锋眰浣撴ā鍨� @@ -21,3 +24,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