Add account settings and memory coach

This commit is contained in:
john
2026-06-05 09:29:18 +08:00
parent a301d50ce1
commit 59c562f707
9 changed files with 752 additions and 38 deletions
+6
View File
@@ -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)