package com.zd.laboratory.controller;

import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zd.common.log.annotation.Log;
import com.zd.common.log.enums.BusinessType;
import com.zd.common.security.annotation.PreAuthorize;
import com.zd.laboratory.domain.LabContentMachineMsg;
import com.zd.laboratory.service.ILabContentMachineMsgService;
import com.zd.common.core.web.controller.BaseController;
import com.zd.common.core.web.domain.AjaxResult;
import com.zd.common.core.utils.poi.ExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.zd.common.swagger.config.Knife4jConfiguration;

import com.zd.common.core.web.page.TableDataInfo;

/**
 * 一体机实验室通知消息Controller
 *
 * @author liubo
 * @date 2022-03-08
 */
@RestController
@Api(tags = "【一体机实验室通知消息】")
@RequestMapping("/contentMachineMsg")
public class LabContentMachineMsgController extends BaseController {
    @Autowired
    private ILabContentMachineMsgService labContentMachineMsgService;

    /**
     * 查询一体机实验室通知消息列表
     */
    @GetMapping("/list")
    @ApiOperation(value = "查询一体机实验室通知消息列表")
    public TableDataInfo<LabContentMachineMsg> list(LabContentMachineMsg labContentMachineMsg) {
        startPage();
        List<LabContentMachineMsg> list = labContentMachineMsgService.selectLabContentMachineMsgList(labContentMachineMsg);
        return getDataTable(list);
    }
}
