MaxKB/apps/setting/swagger_api/valid_api.py
shaohuzhang1 60e65a8b17
feat: 接口校验 (#721)
feat: 接口校验
2024-07-09 13:44:27 +08:00

28 lines
883 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 valid_api.py
@date2024/7/8 17:52
@desc:
"""
from drf_yasg import openapi
from common.mixins.api_mixin import ApiMixin
class ValidApi(ApiMixin):
@staticmethod
def get_request_params_api():
return [openapi.Parameter(name='valid_type',
in_=openapi.IN_PATH,
type=openapi.TYPE_STRING,
required=True,
description='校验类型:application|dataset|user'),
openapi.Parameter(name='valid_count',
in_=openapi.IN_PATH,
type=openapi.TYPE_STRING,
required=True,
description='校验数量')
]