package com.its.api.its.controller.vds;

import com.its.api.its.model.dto.vds.TbVdsDtctRawPnstDto;
import com.its.api.its.service.vds.TbVdsDtctRawPnstService;
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 TbVdsDtctRawPnstController {

    private final TbVdsDtctRawPnstService service;

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

}
