|
|
@@ -1,13 +1,12 @@
|
|
|
package com.its.op.controller.its.rse;
|
|
|
|
|
|
import com.its.op.dto.its.rse.TbRseCtlrSttsDto;
|
|
|
-import com.its.op.service.its.rse.TbRseCtlrSttsService;
|
|
|
+import com.its.op.service.its.rse.TbRseCtlrService;
|
|
|
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.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -17,21 +16,21 @@ import java.util.List;
|
|
|
@Validated
|
|
|
@RestController
|
|
|
@RequiredArgsConstructor
|
|
|
-@RequestMapping("/api/rse/tb_rse_ctlr_stts")
|
|
|
+@RequestMapping("/api/rse/monitoring/stts")
|
|
|
public class TbRseCtlrSttsController {
|
|
|
|
|
|
- private final TbRseCtlrSttsService service;
|
|
|
+ private final TbRseCtlrService service;
|
|
|
|
|
|
@ApiOperation(value = "RSE 상태 현황 전체조회(TB_RSE_CTLR_STTS)", response = TbRseCtlrSttsDto.class, responseContainer = "ArrayList")
|
|
|
@GetMapping(value = "", produces = {"application/json; charset=utf8"})
|
|
|
public List<TbRseCtlrSttsDto> findAll() {
|
|
|
- return this.service.findAll();
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "RSE 상태 현황 개별조회(TB_RSE_CTLR_STTS)", response = TbRseCtlrSttsDto.class)
|
|
|
- @GetMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
- public TbRseCtlrSttsDto findById(@PathVariable final String id) {
|
|
|
- return this.service.findById(id);
|
|
|
+ return this.service.findAllStts();
|
|
|
}
|
|
|
+//
|
|
|
+// @ApiOperation(value = "RSE 상태 현황 개별조회(TB_RSE_CTLR_STTS)", response = TbRseCtlrSttsDto.class)
|
|
|
+// @GetMapping(value = "/{id}", produces = {"application/json; charset=utf8"})
|
|
|
+// public TbRseCtlrSttsDto findById(@PathVariable final String id) {
|
|
|
+// return this.service.findById(id);
|
|
|
+// }
|
|
|
|
|
|
}
|