|
|
@@ -1,11 +1,13 @@
|
|
|
package com.its.api.its.controller.common;
|
|
|
|
|
|
import com.its.api.its.model.dto.code.TbClctSystStupDto;
|
|
|
+import com.its.api.its.model.dto.code.TbSectGradClsfDto;
|
|
|
import com.its.api.its.model.dto.common.CongestTrafficDto;
|
|
|
import com.its.api.its.model.dto.common.DetlTrafIfscDto;
|
|
|
import com.its.api.its.model.dto.common.DetlTrafLinkDto;
|
|
|
import com.its.api.its.model.dto.common.DetlTrafRoadDto;
|
|
|
import com.its.api.its.service.code.TbClctSystStupService;
|
|
|
+import com.its.api.its.service.code.TbSectGradClsfService;
|
|
|
import com.its.api.its.service.common.CommonService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@@ -28,6 +30,7 @@ public class CommonController {
|
|
|
|
|
|
private final TbClctSystStupService clctSystStupService;
|
|
|
private final CommonService commonService;
|
|
|
+ private final TbSectGradClsfService sectGradClsfService;
|
|
|
|
|
|
// /api/database/clct-syst-stup 와 동일
|
|
|
@ApiOperation(value = "수집시스템 조회(TB_CLCT_SYST_STUP)", response = TbClctSystStupDto.class, responseContainer = "ArrayList")
|
|
|
@@ -42,7 +45,7 @@ public class CommonController {
|
|
|
return this.commonService.findAllCongestTraffic();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "링크 교통정보상테", response = DetlTrafLinkDto.class)
|
|
|
+ @ApiOperation(value = "링크 교통정보상태", response = DetlTrafLinkDto.class)
|
|
|
@GetMapping(value = "/detail-traffic/link/{id}", produces = {"application/json; charset=utf8"})
|
|
|
public DetlTrafLinkDto findAllDetailTrafficLink(
|
|
|
@ApiParam(name = "id", value = "링크 ID", example = "2030057800", required = true)
|
|
|
@@ -51,7 +54,7 @@ public class CommonController {
|
|
|
return this.commonService.findAllDetailTrafficLink(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "링크 교통정보상테", response = DetlTrafIfscDto.class)
|
|
|
+ @ApiOperation(value = "링크 교통정보상태", response = DetlTrafIfscDto.class)
|
|
|
@GetMapping(value = "/detail-traffic/ifsc/{id}", produces = {"application/json; charset=utf8"})
|
|
|
public DetlTrafIfscDto findAllDetailTrafficIfsc(
|
|
|
@ApiParam(name = "id", value = "정보제공구간 ID", example = "2005132700", required = true)
|
|
|
@@ -60,7 +63,7 @@ public class CommonController {
|
|
|
return this.commonService.findAllDetailTrafficIfsc(id);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "링크 교통정보상테", response = DetlTrafRoadDto.class)
|
|
|
+ @ApiOperation(value = "링크 교통정보상태", response = DetlTrafRoadDto.class)
|
|
|
@GetMapping(value = "/detail-traffic/road/{id}", produces = {"application/json; charset=utf8"})
|
|
|
public DetlTrafRoadDto findAllDetailTrafficRoad(
|
|
|
@ApiParam(name = "id", value = "도로 ID", example = "2287001900", required = true)
|
|
|
@@ -69,6 +72,12 @@ public class CommonController {
|
|
|
return this.commonService.findAllDetailTrafficRoad(id);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "구간소통등급 목록 조회", response = TbSectGradClsfDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/sect-grad-cd/list", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbSectGradClsfDto> findAllSectGradCdList() {
|
|
|
+ return this.sectGradClsfService.findAll();
|
|
|
+ }
|
|
|
+
|
|
|
// @ApiOperation(value = "현재기상정보조회", response = WeatherInfoDto.class, responseContainer = "ArrayList")
|
|
|
// @GetMapping(value = "/weather-info", produces = {"application/json; charset=utf8"})
|
|
|
// public List<WeatherInfoDto> findAllWeatherInfo() {
|