feat: 后端 CRUD 完成(episodes + yearly_targets + users 管理 API)

This commit is contained in:
simonkoson
2026-05-15 12:17:46 +08:00
parent fab15505bd
commit 3dc1a1cf3c
10 changed files with 497 additions and 4 deletions
+2 -3
View File
@@ -2,7 +2,7 @@
认证相关 Pydantic Schema — 请求 / 响应模型
"""
from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict
from app.models.user import UserRole
@@ -21,5 +21,4 @@ class UserResponse(BaseModel):
profile_text: str | None = None
is_active: bool = True
class Config:
from_attributes = True
model_config = ConfigDict(from_attributes=True)