Explorar o código

fix: employee/info 参数顺序修复

alphah hai 2 semanas
pai
achega
5a8331ef37
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      backend/app/plugin/module_payment/employee/controller.py

+ 1 - 1
backend/app/plugin/module_payment/employee/controller.py

@@ -33,8 +33,8 @@ EmployeeRouter = APIRouter(
     description="查询员工详情",
 )
 async def info_employee_controller(
-    enterprise_id: Annotated[Optional[str], Query(description="企业ID")] = None,
     auth: Annotated[AuthSchema, Depends(get_current_user)],
+    enterprise_id: Annotated[Optional[str], Query(description="企业ID")] = None,
     employee_id: Annotated[Optional[str], Query(description="员工ID")] = None,
     employee_email: Annotated[Optional[str], Query(description="员工邮箱")] = None,
     employee_mobile: Annotated[Optional[str], Query(description="员工手机号")] = None,