Browse Source

优化顶部菜单配置逻辑

test
smallchill 5 years ago
parent
commit
52eb9f382f
  1. 3
      blade-service/blade-system/src/main/java/org/springblade/system/controller/TopMenuController.java

3
blade-service/blade-system/src/main/java/org/springblade/system/controller/TopMenuController.java

@ -36,6 +36,7 @@ import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import static org.springblade.core.cache.constant.CacheConstant.MENU_CACHE;
import static org.springblade.core.cache.constant.CacheConstant.SYS_CACHE;
/**
@ -122,7 +123,7 @@ public class TopMenuController extends BladeController {
@PostMapping("/grant")
@ApiOperationSupport(order = 8)
@ApiOperation(value = "顶部菜单配置", notes = "传入topMenuId集合以及menuId集合")
@CacheEvict(cacheNames = {SYS_CACHE}, allEntries = true)
@CacheEvict(cacheNames = {SYS_CACHE, MENU_CACHE}, allEntries = true)
public R grant(@ApiParam(value = "topMenuId集合", required = true) @RequestParam String topMenuIds,
@ApiParam(value = "menuId集合", required = true) @RequestParam String menuIds) {
boolean temp = topMenuService.grant(Func.toLongList(topMenuIds), Func.toLongList(menuIds));

Loading…
Cancel
Save