数据源的增删改查
parent
550c58dd02
commit
8acd6e7c21
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询表数据总数
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue