package com.its.op.controller.its.database;

import com.its.op.dto.its.code.TbClctSystStupDto;
import com.its.op.service.its.code.TbClctSystStupService;
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 = "09.기초데이터관리-06.가공파라미터관리-00.수집시스템(공통)")
@Validated
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/database/clct-syst-stup")
public class TbClctSystStupController {

    private final TbClctSystStupService service;

    @ApiOperation(value = "수집시스템 조회(TB_CLCT_SYST_STUP)", response = TbClctSystStupDto.class, responseContainer = "ArrayList")
    @GetMapping(value = "", produces = {"application/json; charset=utf8"})
    public List<TbClctSystStupDto> findAll() {
        return service.findAll();
    }

}
