package com.its.op.controller.its.rse;

import com.its.op.dto.its.rse.TbRseOffrSectTrafDto;
import com.its.op.service.its.rse.TbRseOffrSectTrafService;
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.RSE-1.RSE 관리-RSE 제공 정보")
@Validated
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/rse/tb_rse_offr_sect_traf")
public class TbRseOffrSectTrafController {

    private final TbRseOffrSectTrafService service;

    @ApiOperation(value = "RSE 제공 정보 전체조회(TB_RSE_OFFR_SECT_TRAF)", response = TbRseOffrSectTrafDto.class, responseContainer = "ArrayList")
    @GetMapping(value = "", produces = {"application/json; charset=utf8"})
    public List<TbRseOffrSectTrafDto> findAll() {
        return this.service.findAll();
    }


}
