wuyouming666
2024-04-11 680e87428606128d625fc1c60f3f02a05e2e4b0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.mes.controller.userInfo;
 
import com.mes.common.CacheUtil;
import com.mes.common.Result;
import com.mes.service.userInfo.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
 
@RestController
@RequestMapping("/menu")
 
public class SysMenuController {
    @Autowired
    private CacheUtil cacheUtil;
    @Autowired
    private SysMenuService sysMenuService;
    @GetMapping
    public Result getMenu(){
        //获取缓存
        return Result.seccess(sysMenuService.getMenu());
 
    }
}