Skip to content

Commit 121818c

Browse files
committed
1.添加按分类查询文章
1 parent 00a833b commit 121818c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webapi/db/dals/comment_dal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ async def create(self, obj_in: CommentCreate):
2222
return db_obj
2323

2424
async def delete(self, *, db_obj: Comment):
25+
# TODO: 无法删除父评论
2526
await self.db_session.execute(delete(Comment).where(Comment.id == db_obj.id))
2627

2728
async def update(self, db_obj: Comment, obj_in: CommentInUpdate):

0 commit comments

Comments
 (0)