Response(success=False, message="网络连接失败!") @router.get("/modulelist", summary="查询已加载的模块ID列表", response_model=schemas.Response) def modulelist(_: schemas.TokenPayload = Depends(verify_token)): """ 查询已加载的模块ID列表 """ module_ids = [module.__name__ for module in ...
获取认证Token """ user = User.authenticate( db=db, email=form_data.username, password=form_data.password ) if not user: raise HTTPException(status_code=400, detail="用户名或密码不正确") elif not user.is_active: raise HTTPException(status_code=400, detail="用户未启用") access_token_expires...
获取认证Token """ user = User.authenticate( db=db, email=form_data.username, password=form_data.password ) if not user: raise HTTPException(status_code=400, detail="用户名或密码不正确") elif not user.is_active: raise HTTPException(status_code=400, detail="用户未启用") access_token_expires...