package com.bonus.zlpt.home.controller;

import com.bonus.zlpt.common.core.domain.equip.TypeInfo;
import com.bonus.zlpt.common.core.web.controller.BaseController;
import com.bonus.zlpt.common.core.web.page.TableDataInfo;
import com.bonus.zlpt.home.service.MaTypeInfoSevice;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/maType")
public class MaTypeInfoController extends BaseController {

    @Resource
    private MaTypeInfoSevice maTypeInfoSevice;

    /**
     * 搜索分类
     * @return
     */
    @PostMapping("/getEquipmentType")
    public TableDataInfo getEquipmentType() {
        List<TypeInfo> list = maTypeInfoSevice.getMaTypeInfoList();
        return getDataTable(list);
    }

}
