Add account settings and memory coach
This commit is contained in:
@@ -28,6 +28,12 @@ class UserOut(BaseModel):
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class UserUpdate(BaseModel):
|
||||
username: Optional[str] = Field(None, min_length=2, max_length=50)
|
||||
current_password: Optional[str] = Field(None, min_length=6, max_length=100)
|
||||
new_password: Optional[str] = Field(None, min_length=6, max_length=100)
|
||||
|
||||
|
||||
# Translate
|
||||
class TranslateRequest(BaseModel):
|
||||
text: str = Field(min_length=1)
|
||||
|
||||
Reference in New Issue
Block a user