package com.its.op.controller.its.vds;

import com.its.op.dto.its.vds.TbVdsDtctClctPnstDto;
import com.its.op.service.its.vds.TbVdsDtctClctPnstService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
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;

@Api(tags = "13.VDS-1.VDS 관리-3.검지기 수집 모니터링")
@Validated
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/vds/monitoring/dtct-stts")
public class TbVdsDtctClctPnstController {

    private final TbVdsDtctClctPnstService service;

    @ApiOperation(value = "VDS 검지기 수집 현황 조회(TB_VDS_DTCT_RAW_PNST)", response = TbVdsDtctClctPnstDto.class, responseContainer = "ArrayList")
    @GetMapping(value = "", produces = {"application/json; charset=utf8"})
    public List<TbVdsDtctClctPnstDto> findAll() {
        return service.findAll();
    }

}
