feat: axios loading & message

This commit is contained in:
zy7y
2022-09-11 22:50:39 +08:00
parent a1c23c8cf8
commit 28013b0e8e
16 changed files with 78 additions and 28 deletions

View File

@@ -18,7 +18,7 @@ class LoginResult(BaseModel):
"""登录响应模型"""
id: int = Field(..., description="用户ID")
access_token: str = Field(..., description="token 串")
token: str = Field(..., description="token 串")
token_type: str = Field("Bearer", description="token 类型")

View File

@@ -7,7 +7,7 @@ from models import UserModel, UserRoleModel
from schemas.common import QueryData
UserRead = pydantic_model_creator(UserModel, name="UserOut", exclude=("password",))
UserIn = pydantic_model_creator(UserModel, name="UserIn", exclude_readonly=True)
UserIn = pydantic_model_creator(UserModel, name="UserIn", exclude_readonly=True, exclude=("status",))
UserRole = pydantic_model_creator(UserRoleModel, name="UserRole", exclude_readonly=True)