This commit is contained in:
烟雨如花 2024-12-31 22:40:22 +08:00
parent 4f34f5b8be
commit af438deef0

View File

@ -189,7 +189,7 @@ class AccountWechats(AccountWechatsBase):
orm_mode = True # 允许与ORM对象进行直接转换 orm_mode = True # 允许与ORM对象进行直接转换
``` ```
### 3.创建 CRUD: ### 3.创建 CRUD (可选,不知道创建什么逻辑可以先跳过):
```python ```python
# filepath: ExamService/mooc/crud/crud_account.py # filepath: ExamService/mooc/crud/crud_account.py
from sqlalchemy.orm import Session from sqlalchemy.orm import Session