资源基础信息
This commit is contained in:
parent
d0ae226585
commit
a53b817aec
|
@ -65,11 +65,18 @@ public class ResourceController {
|
||||||
return new Result<>().ok(resourceService.pageWithAttrs(jsonObject));
|
return new Result<>().ok(resourceService.pageWithAttrs(jsonObject));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
@ApiOperation("信息")
|
||||||
|
public Result<ResourceDTO> get(@PathVariable("id") Long id) {
|
||||||
|
ResourceDTO data = resourceService.get(id);
|
||||||
|
return new Result<ResourceDTO>().ok(data);
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/select/{id}")
|
@GetMapping("/select/{id}")
|
||||||
@ApiOperation("查询资源详细信息")
|
@ApiOperation("查询资源详细信息")
|
||||||
@LogOperation("查询资源详细信息")
|
@LogOperation("查询资源详细信息")
|
||||||
//@RequiresPermissions("resource:resource:info")
|
//@RequiresPermissions("resource:resource:info")
|
||||||
public Result<ResourceDTO> get(@PathVariable("id") Long id) {
|
public Result<ResourceDTO> select(@PathVariable("id") Long id) {
|
||||||
ResourceDTO data = resourceService.selectWithAttrs(id);
|
ResourceDTO data = resourceService.selectWithAttrs(id);
|
||||||
return new Result<ResourceDTO>().ok(data);
|
return new Result<ResourceDTO>().ok(data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue