From fff6c76cc62cc166022bf159dedb16f2f483712d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 8 Aug 2024 15:03:15 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20drain=20view=20swagger=20=E5=8F=98?= =?UTF-8?q?=E5=8A=A82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/enp/views.py b/apps/enp/views.py index 86432a0c..f862c60f 100644 --- a/apps/enp/views.py +++ b/apps/enp/views.py @@ -37,7 +37,7 @@ class DrainViewSet(CustomModelViewSet): @swagger_auto_schema( manual_parameters=[ - openapi.Parameter(name="equip_data", in_=openapi.IN_QUERY, description="Include equip data in the response", type=openapi.TYPE_STRING, enum=["yes", "no"], required=False), + openapi.Parameter(name="equip_data", in_=openapi.IN_QUERY, description="Include equip data in the response", type=openapi.TYPE_STRING, enum=["no", "base", "enp"], required=False), openapi.Parameter(name="query", in_=openapi.IN_QUERY, description="定制返回数据", type=openapi.TYPE_STRING, required=False), ] )