2024-07-09 05:44:27 +00:00
|
|
|
|
# coding=utf-8
|
|
|
|
|
|
"""
|
|
|
|
|
|
@project: MaxKB
|
|
|
|
|
|
@Author:虎
|
|
|
|
|
|
@file: valid_api.py
|
|
|
|
|
|
@date:2024/7/8 17:52
|
|
|
|
|
|
@desc:
|
|
|
|
|
|
"""
|
|
|
|
|
|
from drf_yasg import openapi
|
|
|
|
|
|
|
|
|
|
|
|
from common.mixins.api_mixin import ApiMixin
|
2025-01-13 03:15:51 +00:00
|
|
|
|
from django.utils.translation import gettext_lazy as _
|
2024-07-09 05:44:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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,
|
2025-01-13 03:15:51 +00:00
|
|
|
|
description=_('Verification type: application|dataset|user')),
|
2024-07-09 05:44:27 +00:00
|
|
|
|
openapi.Parameter(name='valid_count',
|
|
|
|
|
|
in_=openapi.IN_PATH,
|
|
|
|
|
|
type=openapi.TYPE_STRING,
|
|
|
|
|
|
required=True,
|
2025-01-13 03:15:51 +00:00
|
|
|
|
description=_('check quantity'))
|
2024-07-09 05:44:27 +00:00
|
|
|
|
]
|