Browse Source

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

liweiquan 1 year ago
parent
commit
702cce8463
1 changed files with 2 additions and 2 deletions
  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)):
 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)
     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()
 @web_try()
 @sxtimeit
 @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
     res = None
     if ds_id is None:
     if ds_id is None:
         res = crud.get_table_info(db, db_name, table_name)
         res = crud.get_table_info(db, db_name, table_name)