| | |
| | | package com.gs.simple.controller; |
| | | |
| | | |
| | | import com.gs.simple.common.ResultDto; |
| | | import com.gs.simple.domain.BiView; |
| | | import com.gs.simple.domain.MesSimplesimple; |
| | | import com.gs.simple.domain.TreeView; |
| | | import com.gs.simple.service.MesSimpleService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.CrossOrigin; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | private final MesSimpleService simpleService; |
| | | |
| | | |
| | | @PostMapping("/getTree") |
| | | public ResultDto<List<TreeView>> getTree() { |
| | | return simpleService.getTree(); |
| | | } |
| | | |
| | | |
| | | @PostMapping("list") |
| | | @PostMapping("/list") |
| | | public ResultDto<List<MesSimplesimple>> getList() { |
| | | return simpleService.getMenuList(); |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/listByMenuId/{menuId}") |
| | | public ResultDto<List<BiView>> getBiViews(@PathVariable Integer menuId) { |
| | | return simpleService.getBiViewsByMenuId(menuId); |
| | | } |
| | | } |