fiuai-s3 0.3.3__tar.gz → 0.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fiuai-s3 might be problematic. Click here for more details.
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/PKG-INFO +1 -1
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/pyproject.toml +1 -1
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/src/fiuai_s3/minio/minio_storage.py +4 -5
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/src/fiuai_s3/object_storage.py +2 -2
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/.gitignore +0 -0
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/LICENSE +0 -0
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/README.md +0 -0
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/src/fiuai_s3/__init__.py +0 -0
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/src/fiuai_s3/alicloud/__init__.py +0 -0
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/src/fiuai_s3/alicloud/alicloud_storage.py +0 -0
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/src/fiuai_s3/minio/__init__.py +0 -0
- {fiuai_s3-0.3.3 → fiuai_s3-0.3.5}/src/fiuai_s3/type.py +0 -0
|
@@ -176,17 +176,16 @@ class MinioStorage(ObjectStorage):
|
|
|
176
176
|
上传单据文件,自动拼接存储路径并打tag
|
|
177
177
|
"""
|
|
178
178
|
try:
|
|
179
|
-
|
|
180
179
|
object_key = self._build_doc_path(filename, auth_tenant_id, auth_company_id, doc_id)
|
|
181
180
|
# 将tags转换为Tags对象
|
|
182
181
|
tags_obj = Tags()
|
|
183
182
|
for k, v in tags.items():
|
|
184
183
|
tags_obj[k] = v
|
|
185
184
|
|
|
186
|
-
if doc_source_from
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
doc_source_from = doc_source_from if doc_source_from else DocSourceFrom.OTHER
|
|
186
|
+
doc_file_type = doc_file_type if doc_file_type else DocFileType.OTHER
|
|
187
|
+
tags_obj["doc_source_from"] = doc_source_from.value
|
|
188
|
+
tags_obj["doc_file_type"] = doc_file_type.value
|
|
190
189
|
|
|
191
190
|
self.client.put_object(
|
|
192
191
|
bucket_name=self.bucket_name,
|
|
@@ -100,8 +100,8 @@ class ObjectStorage(ABC):
|
|
|
100
100
|
def upload_doc_file(self,
|
|
101
101
|
filename: str,
|
|
102
102
|
data: bytes,
|
|
103
|
-
doc_source_from: Optional[DocSourceFrom],
|
|
104
|
-
doc_file_type: Optional[DocFileType],
|
|
103
|
+
doc_source_from: Optional[DocSourceFrom] = None,
|
|
104
|
+
doc_file_type: Optional[DocFileType] = None,
|
|
105
105
|
tags: Optional[Dict[str, str]] = None,
|
|
106
106
|
auth_tenant_id: Optional[str] = None, auth_company_id: Optional[str] = None, doc_id: Optional[str] = None) -> bool:
|
|
107
107
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|