|
|
@@ -1,15 +1,14 @@
|
|
|
package com.its.api.its.controller.vms;
|
|
|
|
|
|
import com.its.api.its.model.dto.vms.*;
|
|
|
-import com.its.api.its.service.vms.TbVmsCtlrService;
|
|
|
-import com.its.api.its.service.vms.TbVmsFormTypeService;
|
|
|
-import com.its.api.its.service.vms.TbVmsTypeService;
|
|
|
-import com.its.api.its.service.vms.TbVmsUsagTypeService;
|
|
|
+import com.its.api.its.service.vms.*;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
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;
|
|
|
|
|
|
@@ -26,29 +25,66 @@ public class VmsCommonController {
|
|
|
private final TbVmsTypeService vmsTypeService;
|
|
|
private final TbVmsCtlrService vmsCtlrService;
|
|
|
private final TbVmsFormTypeService formTypeService;
|
|
|
+ private final TbVmsMsgDsplMthdService msgDsplMthdService;
|
|
|
+ private final TbVmsMsgDsplDrctService msgDsplDrctService;
|
|
|
+ private final TbVmsFontShpeService fontShpeService;
|
|
|
+ private final TbVmsFormObjectTypeService objectTypeService;
|
|
|
|
|
|
@ApiOperation(value = "VMS 제어기 용도 유형 조회(TB_VMS_USAG_TYPE)", response = TbVmsUsagTypeDto.class, responseContainer = "ArrayList")
|
|
|
@GetMapping(value = "/vms-usage", produces = {"application/json; charset=utf8"})
|
|
|
public List<TbVmsUsagTypeDto> findAllVmsUsageType() {
|
|
|
- return usagTypeService.findAll();
|
|
|
+ return this.usagTypeService.findAll();
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "VMS 제어기 유형(크기) 조회(TB_VMS_TYPE)", response = TbVmsTypeDto.class, responseContainer = "ArrayList")
|
|
|
@GetMapping(value = "/vms-type", produces = {"application/json; charset=utf8"})
|
|
|
public List<TbVmsTypeDto> findAllVmsType() {
|
|
|
- return vmsTypeService.findAll();
|
|
|
+ return this.vmsTypeService.findAll();
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "VMS 목록 조회(TB_VMS_CTLR)", response = TbVmsIfscRltnDto.class, responseContainer = "ArrayList")
|
|
|
@GetMapping(value = "/vms-list", produces = {"application/json; charset=utf8"})
|
|
|
public List<TbVmsCtlrDto> findVmsCtlrAll() {
|
|
|
- return vmsCtlrService.findNotDeletedAll();
|
|
|
+ return this.vmsCtlrService.findNotDeletedAll();
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "VMS 폼 유형 조회(TB_VMS_FORM_TYPE)", response = TbVmsFormTypeDto.class, responseContainer = "ArrayList")
|
|
|
@GetMapping(value = "/vms-form-type", produces = {"application/json; charset=utf8"})
|
|
|
public List<TbVmsFormTypeDto> findVmsFormTypeAll() {
|
|
|
- return formTypeService.findAll();
|
|
|
+ return this.formTypeService.findAll();
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "VMS 폼 표출방법 조회(TB_VMS_MSG_DSPL_MTHD)", response = TbVmsMsgDsplMthdDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/vms-form-dspl-mthd", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsMsgDsplMthdDto> findVmsFormDsplMthdAll() {
|
|
|
+ return this.msgDsplMthdService.findAll();
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "VMS 폼 표출방향 조회(TB_VMS_MSG_DSPL_DRCT)", response = TbVmsMsgDsplDrctDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/vms-form-dspl-drct", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsMsgDsplDrctDto> findVmsFormDsplDrctAll() {
|
|
|
+ return this.msgDsplDrctService.findAll();
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "VMS 폼 폰트유형 조회(TB_VMS_FONT_SHPE)", response = TbVmsFontShpeDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/vms-form-font", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsFontShpeDto> findVmsFormFontAll() {
|
|
|
+ return this.fontShpeService.findAll();
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "VMS 폼 객체유형 조회-전체(TB_VMS_FORM_OBJECT_TYPE)", response = TbVmsFormObjectTypeDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/vms-form-object", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsFormObjectTypeDto> findVmsFormObjectTypeAll() {
|
|
|
+ return this.objectTypeService.findAll();
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "VMS 폼 객체유형 조회(TB_VMS_FORM_OBJECT_TYPE)", response = TbVmsFormObjectTypeDto.class, responseContainer = "ArrayList")
|
|
|
+ @GetMapping(value = "/vms-form-object/{type}", produces = {"application/json; charset=utf8"})
|
|
|
+ public List<TbVmsFormObjectTypeDto> findVmsFormObjectTypeAllByFormType(
|
|
|
+ @ApiParam(name = "type", value = "VMS 폼 유형 코드", example = "11", required = true)
|
|
|
+ @PathVariable final Integer type
|
|
|
+ ) {
|
|
|
+ return this.objectTypeService.findAllByFormType(type);
|
|
|
}
|
|
|
|
|
|
}
|