| | |
| | | import com.moral.common.bean.PageBean; |
| | | import com.moral.common.bean.ResultBean; |
| | | import com.moral.entity.Menu; |
| | | import com.moral.service.ChannelService; |
| | | import com.moral.service.MenuService; |
| | | |
| | | @RestController |
| | |
| | | public class MenuController { |
| | | @Resource |
| | | MenuService menuService; |
| | | |
| | | @Resource |
| | | ChannelService channelService; |
| | | |
| | | @GetMapping("count-by-example") |
| | | public ResultBean<Integer> countByExample(PageBean pageBean) { |
| | |
| | | return resultBean; |
| | | } |
| | | |
| | | @GetMapping("page-list") |
| | | public PageBean pageList(PageBean pageBean) { |
| | | return menuService.queryByPageBean(pageBean); |
| | | @GetMapping("channel-list") |
| | | public ResultBean getChannelList(String channelName) { |
| | | ResultBean resultBean = new ResultBean(ResultBean.SUCCESS); |
| | | resultBean.setData(channelService.getChannelList(channelName)); |
| | | return resultBean; |
| | | } |
| | | |
| | | @GetMapping("page-allList") |