|
@ -12,8 +12,10 @@ import com.epmet.commons.tools.validator.group.AddGroup; |
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
import com.epmet.dto.OperMenuDTO; |
|
|
import com.epmet.dto.OperMenuDTO; |
|
|
|
|
|
import com.epmet.dto.result.MenuResourceDTO; |
|
|
import com.epmet.excel.OperMenuExcel; |
|
|
import com.epmet.excel.OperMenuExcel; |
|
|
import com.epmet.service.OperMenuService; |
|
|
import com.epmet.service.OperMenuService; |
|
|
|
|
|
import com.epmet.service.OperResourceService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
@ -36,6 +38,9 @@ public class OperMenuController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private OperMenuService operMenuService; |
|
|
private OperMenuService operMenuService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private OperResourceService operResourceService; |
|
|
|
|
|
|
|
|
@GetMapping("page") |
|
|
@GetMapping("page") |
|
|
public Result<PageData<OperMenuDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
public Result<PageData<OperMenuDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
PageData<OperMenuDTO> page = operMenuService.page(params); |
|
|
PageData<OperMenuDTO> page = operMenuService.page(params); |
|
@ -45,6 +50,10 @@ public class OperMenuController { |
|
|
@GetMapping("{id}") |
|
|
@GetMapping("{id}") |
|
|
public Result<OperMenuDTO> get(@PathVariable("id") String id){ |
|
|
public Result<OperMenuDTO> get(@PathVariable("id") String id){ |
|
|
OperMenuDTO data = operMenuService.get(id); |
|
|
OperMenuDTO data = operMenuService.get(id); |
|
|
|
|
|
|
|
|
|
|
|
//菜单资源列表
|
|
|
|
|
|
List<MenuResourceDTO> resourceList = operResourceService.getMenuResourceList(id); |
|
|
|
|
|
|
|
|
return new Result<OperMenuDTO>().ok(data); |
|
|
return new Result<OperMenuDTO>().ok(data); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|