数据源的增删改查

master
冷调 2024-08-23 00:38:46 +08:00
parent 550c58dd02
commit 8acd6e7c21
1 changed files with 2 additions and 17 deletions

View File

@ -73,7 +73,7 @@ public class DataSourceController extends BaseController {
*
*/
@RequiresPermissions("Datasource:source:query")
@GetMapping(value = "/{id}")
@GetMapping(value = "/getDataSourceById/{id}")
public Result<List<DataSource>> getInfo(@PathVariable("id") Long id)
{
return success(dataSourceService.selectDataSourceById(id));
@ -126,28 +126,13 @@ public class DataSourceController extends BaseController {
* @param id ID
* @return
*/
@GetMapping("getDataSourceById/{id}")
@GetMapping("/getDataSourceById/{id}")
@Operation(summary = "根据ID获取数据", description = "根据ID获取数据")
public Result<DataSource> getDataSourceById(@PathVariable("id") Long id) {
DataSource dataSource = dataSourceService.getById(id);
return Result.success(dataSource);
}
/**
*
*
* @param id ID
* @return
*/
@GetMapping("/{id}")
@Operation(summary = "获取数据源详细信息", description = "根据ID获取数据源详细信息")
public Result<DataSource> getById(@PathVariable("id") Long id) {
return Result.success(dataSourceService.getById(id));
}
/**
*
*