UnisKB/apps/dataset/swagger_api/image_api.py

23 lines
576 B
Python
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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='上传图片文件')
]