package com.bonus.zlpt.home.controller;



import com.bonus.zlpt.common.core.web.controller.BaseController;
import com.bonus.zlpt.common.core.web.page.TableDataInfo;
import com.bonus.zlpt.equip.api.domain.vo.DevInfoVo;
import com.bonus.zlpt.home.service.MaDevInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 设备类型
 */
@Api(value = "设备类型",tags = {"设备类型"})
@RestController
@RequestMapping("/devInfo")
public class MaDevInfoController extends BaseController {


    @Autowired
    private MaDevInfoService maDevInfoService;


    /**
     * 搜索栏
     * @return
     */
    @ApiOperation("搜索栏")
    @PostMapping("/getEquipmentList")
    public TableDataInfo getEquipmentList(@Validated @RequestBody DevInfoVo maDevInfo) {
        List<DevInfoVo> list = maDevInfoService.getEquipmentList(maDevInfo);
        return getDataTable(list);
    }

}
