import json from typing import List, Optional, Any from sqlalchemy import select, func from app.utils.common import uuid_generate from app.utils.oss import get_object, put_object from app.models.db import get_async_session from app.models.common import Page class FileUploadService: @staticmethod async def upload_minio(filename, file_content, length) -> str: try: file_upload = await put_object(filename, file_content, length) return file_upload except Exception as e: print(e) return ""