fix storage api

This commit is contained in:
jxxghp
2024-09-14 14:43:14 +08:00
parent 8bb25afcdc
commit e86bf61579
8 changed files with 63 additions and 37 deletions

View File

@@ -40,11 +40,11 @@ class StorageChain(ChainBase):
"""
return self.run_module("create_folder", fileitem=fileitem, name=name)
def download_file(self, fileitem: schemas.FileItem, path: str) -> Optional[bool]:
def download_file(self, fileitem: schemas.FileItem) -> Optional[Path]:
"""
下载文件
"""
return self.run_module("download_file", fileitem=fileitem, path=path)
return self.run_module("download_file", fileitem=fileitem)
def upload_file(self, fileitem: schemas.FileItem, path: Path) -> Optional[bool]:
"""