mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
增加刷新url资源接口
This commit is contained in:
@@ -27,17 +27,22 @@ public class ResourceController extends BaseController {
|
||||
@Autowired ResourceService service;
|
||||
|
||||
@PostMapping("/apiTree")
|
||||
@SysLog(action = "获取接口树")
|
||||
public List<ResourceTreeDto> apiTree() {
|
||||
return this.service.apiTree();
|
||||
}
|
||||
|
||||
@PostMapping("/menuTree")
|
||||
@SysLog(action = "获取菜单树")
|
||||
public List<ResourceTreeDto> menuTree() {
|
||||
return this.service.menuTree();
|
||||
}
|
||||
|
||||
@PostMapping("/initUrlResource")
|
||||
@SysLog(action = "刷新URL资源")
|
||||
public Boolean initUrlResource() {
|
||||
this.service.initUrlResource();
|
||||
return true;
|
||||
}
|
||||
|
||||
@PostMapping("/create")
|
||||
@SysLog(action = "新增")
|
||||
public ResourceDto create(@RequestBody CreateResourceDto dto) {
|
||||
|
||||
Reference in New Issue
Block a user