Ver Fonte

数据预览展示额外信息、回显存储路径

liweiquan há 1 ano atrás
pai
commit
702cce8463
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      app/routers/job_jdbc_datasource.py

+ 2 - 2
app/routers/job_jdbc_datasource.py

@@ -163,10 +163,10 @@ def get_lake_table_schema(db_name: str, table_name: str, db: Session = Depends(g
 def get_preview_lake_table(db_name: str, table_name: str, db: Session = Depends(get_db)):
     return crud.get_preview_lake_table(db, db_name, table_name)
 
-@router.get("/table_location")
+@router.get("/table_location", dependencies=[Depends(verify_all)])
 @web_try()
 @sxtimeit
-def get_table_location(db_name: str, table_name: str, ds_id: Optional[int] = None, token_data: schemas.TokenData = Depends(verify_special), db: Session = Depends(get_db)):
+def get_table_location(db_name: str, table_name: str, ds_id: Optional[int] = None, db: Session = Depends(get_db)):
     res = None
     if ds_id is None:
         res = crud.get_table_info(db, db_name, table_name)