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

import com.its.api.its.model.dto.vds.TbVdsCtlrSttsDto;
import com.its.api.its.service.vds.TbVdsCtlrService;
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 관리-2.제어기 상태 모니터링")
@Validated
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/vds/monitoring/ctlr-stts")
public class TbVdsCtlrSttsController {

    private final TbVdsCtlrService service;

    @ApiOperation(value = "VDS 제어기 상태 전체조회(TB_VDS_CTLR_STTS)", response = TbVdsCtlrSttsDto.class, responseContainer = "ArrayList")
    @GetMapping(value = "", produces = {"application/json; charset=utf8"})
    public List<TbVdsCtlrSttsDto> findAllVdsStts() {
        return service.findAllStts();
    }

}
