Ver código fonte

补充演练列表查询接口

baoyubo 9 meses atrás
pai
commit
e50a4d064d
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      routers/api/emergencyPlans/__init__.py

+ 2 - 0
routers/api/emergencyPlans/__init__.py

@@ -225,6 +225,8 @@ async def create_emergency_plan(
 @router.get('/drill/list')
 async def get_emergency_plan_list(
     planNum: str = Query(None, description='预案编号'),
+    page: int = Query(1, gt=0, description='页码'),
+    page_size: int = Query(10, gt=0, description='每页条目数量'),
     db: Session = Depends(get_db)
 ):
     try: