jack 4 月之前
父节点
当前提交
e90110404d
共有 1 个文件被更改,包括 0 次插入22 次删除
  1. 0 22
      app/services/file/impl/r2r_file.py

+ 0 - 22
app/services/file/impl/r2r_file.py

@@ -22,28 +22,6 @@ nest_asyncio.apply()
 
 class R2RFileService(OSSFileService):
 
-'''
-    @staticmethod
-    def get_file_list_by_ids(*, session: Session, file_ids: List[str]) -> List[File]:
-        if not file_ids:
-            return []
-        statement = select(File).where(col(File.id).in_(file_ids))
-        return session.execute(statement).scalars().all()
-
-    @staticmethod
-    async def get_file_list(
-        *, session: AsyncSession, purpose: str, file_ids: List[str]
-    ) -> List[File]:
-        statement = select(File)
-        if purpose is not None and len(purpose) > 0:
-            statement = statement.where(File.purpose == purpose)
-        if file_ids is not None:
-            statement = statement.where(File.id.in_(file_ids))
-        statement = statement.order_by(desc(File.created_at))
-        result = await session.execute(statement)
-        return result.scalars().all()
-'''
-
     @staticmethod
     async def create_file(
         *, session: AsyncSession, purpose: str, file: UploadFile