package com.bonus.zlpt.company.controller;

import com.bonus.zlpt.common.core.web.controller.BaseController;
import com.bonus.zlpt.common.core.web.page.TableDataInfo;
import com.bonus.zlpt.company.domain.BusinessMenu;
import com.bonus.zlpt.company.service.BusinessMenuService;
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;

import java.util.List;

/**
 * 业务类型
 */
@RestController
@RequestMapping("/business/menu")
public class BusinessMenuController extends BaseController {

    @Autowired
    private BusinessMenuService businessMenuService;


    /**
     * 查询所有业务类型
     * @return
     */
    @GetMapping("/selectList")
    public TableDataInfo selectList(){

        startPage();
        List<BusinessMenu> businessMenus = businessMenuService.selectList();
        return getDataTable(businessMenus);
    }







}
