update source code

This commit is contained in:
Duy Dang
2024-06-05 17:39:29 +08:00
parent 4b06fbed96
commit 56fc427eae
11 changed files with 38 additions and 25 deletions

View File

@ -3,9 +3,9 @@ from uuid import UUID
from pydantic import ConfigDict
from fastapi import Form
from backend.schemas.fuware_model import FuwareModel
from backend.schemas.main_model import MainModel
class UserBase(FuwareModel):
class UserBase(MainModel):
username: str = Form(...)
class UserRequest(UserBase):
@ -34,7 +34,7 @@ class ProfileResponse(UserBase):
updated_at: datetime
model_config = ConfigDict(from_attributes=True)
class LoginResponse(FuwareModel):
class LoginResponse(MainModel):
access_token: str
exp: int
name: str