更新注释
This commit is contained in:
@@ -52,4 +52,3 @@ class AdvisorOut(BaseModel):
|
||||
# from_attributes = True:支持直接把SQLAlchemy ORM对象转为Pydantic模型
|
||||
# 作用:ORM查询出来的数据库实体,可以直接赋值给AdvisorOut,自动读取属性
|
||||
from_attributes = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user