(self, session: AsyncSession, note_id: str)
| 175 | await session.execute(stmt) |
| 176 | |
| 177 | async def content_is_exist(self, session: AsyncSession, note_id: str) -> bool: |
| 178 | stmt = select(XhsNote).where(XhsNote.note_id == note_id) |
| 179 | result = await session.execute(stmt) |
| 180 | return result.first() is not None |
| 181 | |
| 182 | async def store_comment(self, comment_item: Dict): |
| 183 | if not comment_item: |