fix(sqlbot): 暂时禁用 SQLBot API 防止数据源凭据泄露
This commit is contained in:
committed by
fit2cloud-chenyw
parent
3bcbdf200c
commit
589b943dfb
@@ -9,9 +9,10 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
import java.util.List;
|
||||
|
||||
public interface DataAssistantApi {
|
||||
@GetMapping("/datasource")
|
||||
// V3 暂时禁用 SQLBot,保留实现但不注册 HTTP 路由。
|
||||
// @GetMapping("/datasource")
|
||||
List<DataSQLBotAssistantVO> getDatasourceList(@RequestParam(required = false) Long dsId, @RequestParam(required = false) Long tableId);
|
||||
|
||||
@GetMapping("/dataset/{dvInfo}")
|
||||
// @GetMapping("/dataset/{dvInfo}")
|
||||
List<DataSQLBotDatasetVO> getDatasetList(@PathVariable String dvInfo);
|
||||
}
|
||||
|
||||
@@ -72,11 +72,12 @@ public interface SysParameterApi {
|
||||
@Operation(summary = "查询自定义国际化选项")
|
||||
Map<String, String> i18nOptions();
|
||||
|
||||
@GetMapping("/sqlbot")
|
||||
// V3 暂时禁用 SQLBot,保留实现但不注册 HTTP 路由。
|
||||
// @GetMapping("/sqlbot")
|
||||
@Operation(summary = "查询sqlbot嵌入配置")
|
||||
SQLBotConfigVO sqlBotConfig();
|
||||
|
||||
@PostMapping("/sqlbot")
|
||||
// @PostMapping("/sqlbot")
|
||||
@Operation(summary = "查询sqlbot嵌入配置")
|
||||
void saveSqlBotConfig(@RequestBody SQLBotConfigCreator configVO);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user