MaxKB/apps/dataset/swagger_api/image_api.py
shaohuzhang1 b26265fefd
feat: 【应用】支持自定义上传应用的logo #54
* feat: 【知识库】本地上传的文档内带的图片能同步到 maxkb 里 #69 
* feat: 【应用】支持自定义上传应用的logo #54
2024-04-23 19:03:34 +08:00

23 lines
576 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding=utf-8
"""
@project: maxkb
@Author
@file image_api.py
@date2024/4/23 11:23
@desc:
"""
from drf_yasg import openapi
from common.mixins.api_mixin import ApiMixin
class ImageApi(ApiMixin):
@staticmethod
def get_request_params_api():
return [openapi.Parameter(name='file',
in_=openapi.IN_FORM,
type=openapi.TYPE_FILE,
required=True,
description='上传图片文件')
]