更新注释

This commit is contained in:
qinghu762-afk
2026-09-14 16:52:46 +08:00
parent e8021b9302
commit a508d590ca
3 changed files with 57 additions and 4 deletions
-1
View File
@@ -52,4 +52,3 @@ class AdvisorOut(BaseModel):
# from_attributes = True:支持直接把SQLAlchemy ORM对象转为Pydantic模型
# 作用:ORM查询出来的数据库实体,可以直接赋值给AdvisorOut,自动读取属性
from_attributes = True