package com.zd.laboratory.controller;

import java.util.List;

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 com.zd.laboratory.domain.LabRelay;
import com.zd.laboratory.service.ILabRelayService;
import com.zd.common.core.web.controller.BaseController;
import com.zd.common.core.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 继电器和传感器网关Controller
 *
 * @author zd
 * @date 2021-10-16
 */
@RestController
@Api(tags = "【继电器和传感器网关】")
@RequestMapping("/relay")
public class LabRelayController extends BaseController {
    @Autowired
    private ILabRelayService labRelayService;

    /**
     * 查询继电器和传感器网关列表
     */
    @GetMapping("/list")
    @ApiOperation(value = "查询继电器和传感器网关列表")
    public AjaxResult list(LabRelay labRelay) {
        List<LabRelay> list = labRelayService.selectLabRelayList(labRelay);
        return AjaxResult.success(list);
    }

}
