package com.its.op.controller.its.scrs;

import com.its.op.dto.its.scrs.TbScIxrCmraSttsDto;
import com.its.op.service.its.scrs.TbScIxrCmraMngmService;
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 = "14.스마트교차로-1.관리-2.스마트교차로카메라 상태 모니터링")
@Validated
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/ccam/monitoring/stts")
public class TbScIxrCmraSttsController {

    private final TbScIxrCmraMngmService service;

    @ApiOperation(value = "카메라 상태 전체조회(TB_SC_IXR_CMRA_STTS)", response = TbScIxrCmraSttsDto.class, responseContainer = "ArrayList")
    @GetMapping(value = "", produces = {"application/json; charset=utf8"})
    public List<TbScIxrCmraSttsDto> findAll() {
        return this.service.findAllStts();
    }

}
