package com.its.api.its.controller.vms;

import com.its.api.its.model.dto.vms.TbVmsSttsDto;
import com.its.api.its.service.vms.TbVmsCtlrService;
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 = "12.VMS-0.시스템-2.모니터링-3.상태모니터링")
@Validated
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/vms/monitoring/stts")
public class TbVmsSttsController {

    private final TbVmsCtlrService service;

    @ApiOperation(value = "VMS 상태 현재 전체조회(TB_VMS_STTS_PRST)", response = TbVmsSttsDto.class, responseContainer = "ArrayList")
    @GetMapping(value = "", produces = {"application/json; charset=utf8"})
    public List<TbVmsSttsDto> findAllVmsStts() {
        return service.findAllStts();
    }

}
