MaxKB/apps/function_lib/swagger_api/py_lint_api.py
2024-10-08 17:00:37 +08:00

24 lines
546 B
Python
Raw 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 py_lint_api.py
@date2024/9/30 15:48
@desc:
"""
from drf_yasg import openapi
from common.mixins.api_mixin import ApiMixin
class PyLintApi(ApiMixin):
@staticmethod
def get_request_body_api():
return openapi.Schema(
type=openapi.TYPE_OBJECT,
required=['code'],
properties={
'code': openapi.Schema(type=openapi.TYPE_STRING, title="函数内容", description="函数内容")
}
)