zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.changhong.epc.admin.controller.menu;
 
import com.changhong.epc.admin.service.menu.MenuService;
import com.changhong.epc.bean.admin.menu.Menu;
import com.changhong.epc.constter.admin.AdminUrlConst;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
import java.util.List;
 
@RestController
public class MenuController implements AdminUrlConst {
 
    @Resource
    private MenuService menuService;
 
    @PostMapping(ADMIN_MENU)
    public List<Menu> getMenu(){
        return menuService.getMenu();
    }
 
}