0821
parent
b685a66576
commit
8b177d00a0
|
@ -29,7 +29,7 @@ public class DataSourcesController {
|
|||
* @return 实例对象
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public Result<DataSources> queryById(@PathVariable Integer id){
|
||||
public Result<DataSources> queryById(@PathVariable("id") Integer id){
|
||||
return Result.success(dataSourcesService.getById(id));
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ public class DataSourcesController {
|
|||
* @return 是否成功
|
||||
*/
|
||||
@DeleteMapping("/{id}")
|
||||
public Result<Boolean> deleteById(@PathVariable Integer id){
|
||||
public Result<Boolean> deleteById(@PathVariable("id") Integer id){
|
||||
return Result.success(dataSourcesService.removeById(id));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue