Explorar o código

fix: 修复合同签署状态参数类型错误的问题

天空之城 hai 5 días
pai
achega
cf1bf8c73b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      alien_contract/api/router.py

+ 1 - 1
alien_contract/api/router.py

@@ -37,7 +37,7 @@ async def create_bundle(
 async def list_bundles(
     subject_type: Literal["store", "lawyer"] = Query(...),
     subject_id: int = Query(..., gt=0),
-    status: Optional[Literal[0, 1]] = Query(None, description="文档签署状态过滤: 0=未签署, 1=已签署"),
+    status: Optional[int] = Query(None, ge=0, le=1, description="文档签署状态过滤: 0=未签署, 1=已签署"),
     page: int = Query(1, ge=1),
     page_size: int = Query(10, ge=1, le=100),
     service: ContractCenterService = Depends(get_contract_service),