refactor: master api dto 하위 패키지 분리

This commit is contained in:
Daseul Kim 2025-01-13 14:26:19 +09:00
parent 50a7b9c174
commit 4503d5b5ba
32 changed files with 315 additions and 304 deletions

View File

@ -1,6 +1,16 @@
package com.interplug.qcast.biz.master;
import com.interplug.qcast.biz.master.dto.*;
import com.interplug.qcast.biz.master.dto.construction.ApiConstructionResponse;
import com.interplug.qcast.biz.master.dto.moduletype.ApiModuleTpResponse;
import com.interplug.qcast.biz.master.dto.pcs.maker.ApiPcsMakerResponse;
import com.interplug.qcast.biz.master.dto.pcs.series.ApiPcsSeriesItemRequest;
import com.interplug.qcast.biz.master.dto.pcs.series.ApiPcsSeriesItemResponse;
import com.interplug.qcast.biz.master.dto.quotation.ApiQuotationItemRequest;
import com.interplug.qcast.biz.master.dto.quotation.ApiQuotationItemResponse;
import com.interplug.qcast.biz.master.dto.roofmaterial.ApiRoofMaterialResponse;
import com.interplug.qcast.biz.master.dto.trestle.ApiTrestleResponse;
import com.interplug.qcast.biz.master.dto.trestle.detail.ApiTrestleDetailResponse;
import com.interplug.qcast.config.Exception.ErrorCode;
import com.interplug.qcast.config.Exception.QcastException;
import io.swagger.v3.oas.annotations.Operation;
@ -247,8 +257,8 @@ public class MasterController {
@Operation(description = "PCS 시리즈 아이템 목록을 조회한다.")
@PostMapping("/getPcsSeriesItemList")
public ApiResponse<ApiPcsSeriesItemListResponse> getPcsSeriesItemList(
@RequestBody ApiPcsSeriesItemListRequest pcsSeriesItemListRequest) {
public ApiResponse<ApiPcsSeriesItemResponse> getPcsSeriesItemList(
@RequestBody ApiPcsSeriesItemRequest pcsSeriesItemListRequest) {
return masterService.getPcsSeriesItemList(pcsSeriesItemListRequest);
}

View File

@ -1,6 +1,14 @@
package com.interplug.qcast.biz.master;
import com.interplug.qcast.biz.master.dto.*;
import com.interplug.qcast.biz.master.dto.construction.ApiConstructionResponse;
import com.interplug.qcast.biz.master.dto.moduletype.ApiModuleTpResponse;
import com.interplug.qcast.biz.master.dto.pcs.maker.ApiPcsMakerResponse;
import com.interplug.qcast.biz.master.dto.pcs.series.ApiPcsSeriesItemRequest;
import com.interplug.qcast.biz.master.dto.pcs.series.ApiPcsSeriesItemResponse;
import com.interplug.qcast.biz.master.dto.roofmaterial.ApiRoofMaterialResponse;
import com.interplug.qcast.biz.master.dto.trestle.ApiTrestleResponse;
import com.interplug.qcast.biz.master.dto.trestle.detail.ApiTrestleDetailResponse;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
@ -72,6 +80,6 @@ public interface MasterService {
// PCS 시리즈 아이템 목록 조회
@PostMapping("/pcsSeriesItemList")
public ApiResponse<ApiPcsSeriesItemListResponse> getPcsSeriesItemList(
@RequestBody ApiPcsSeriesItemListRequest req);
public ApiResponse<ApiPcsSeriesItemResponse> getPcsSeriesItemList(
@RequestBody ApiPcsSeriesItemRequest req);
}

View File

@ -1,51 +0,0 @@
package com.interplug.qcast.biz.master.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "Api 시공법 목록 조회 요청 객체")
public class ApiConstructionRequest {
@Schema(description = "Language코드")
private String langCd;
@Schema(description = "모듈타입코드")
private String moduleTpCd;
@Schema(description = "지붕재코드")
private String roofMatlCd;
@Schema(description = "가대메이커코드")
private String trestleMkrCd;
@Schema(description = "공법코드")
private String constMthdCd;
@Schema(description = "지붕기초코드")
private String roofBaseCd;
@Schema(description = "면조도")
private String illuminationTp;
@Schema(description = "설치높이")
private String instHt;
@Schema(description = "풍속")
private String stdWindSpeed;
@Schema(description = "적설량")
private String stdSnowLd;
@Schema(description = "경사도코드")
private String inclCd;
@Schema(description = "서까래기초코드")
private String raftBaseCd;
@Schema(description = "하제(망둥어)피치")
private Integer roofPitch;
}

View File

@ -1,36 +0,0 @@
package com.interplug.qcast.biz.master.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "Api 시공법 목록 조회 응답 객체")
public class ApiConstructionResponse {
@Schema(description = "시공법")
private String constTp;
@Schema(description = "시공법명")
private String constTpNm;
@Schema(description = "시공법명(일본)")
private String constTpJp;
@Schema(description = "시공법가능여부")
private String constPossYn;
@Schema(description = "치조가능여부")
private String plvrYn;
@Schema(description = "처마커버설치가능여부")
private String cvrYn;
@Schema(description = "처마커버설치최대단수")
private Integer cvrLmtRow;
@Schema(description = "낙설방지금구설치가능여부")
private String snowGdPossYn;
}

View File

@ -1,37 +0,0 @@
package com.interplug.qcast.biz.master.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "PCS 메이커, 시리즈 목록 조회")
public class ApiPcsMakerResponse {
@Schema(description = "PCS메이커코드")
private String pcsMkrCd;
@Schema(description = "PCS메이커코드명")
private String pcsMkrNm;
@Schema(description = "PCS메이커코드명(일본)")
private String pcsMkrNmJp;
@Schema(description = "PCS시리즈멀티선택타입(멀티:MULTI, 단독:SINGLE, 단독(병설):SINGLE-P)")
private String pcsMkrMultiType;
@Schema(description = "PCS시리즈코드")
private String pcsSerCd;
@Schema(description = "PCS시리즈코드명")
private String pcsSerNm;
@Schema(description = "PCS시리즈코드명(일본)")
private String pcsSerNmJp;
@Schema(description = "PCS시리즈 병설 여부")
private String pcsSerParallelYn;
}

View File

@ -1,54 +0,0 @@
package com.interplug.qcast.biz.master.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "Api 가대 상세 조회 요청 객체")
public class ApiTrestleDetailRequest {
@Schema(description = "Language코드")
private String langCd;
@Schema(description = "모듈타입코드")
private String moduleTpCd;
@Schema(description = "지붕재코드")
private String roofMatlCd;
@Schema(description = "가대메이커코드")
private String trestleMkrCd;
@Schema(description = "공법코드")
private String constMthdCd;
@Schema(description = "지붕기초코드")
private String roofBaseCd;
@Schema(description = "면조도")
private String illuminationTp;
@Schema(description = "설치높이")
private String instHt;
@Schema(description = "풍속")
private String stdWindSpeed;
@Schema(description = "적설량")
private String stdSnowLd;
@Schema(description = "경사도코드")
private String inclCd;
@Schema(description = "시공법")
private String constTp;
@Schema(description = "혼합모듈번호")
private Integer mixMatlNo;
@Schema(description = "하제(망둥어)피치")
private Integer roofPitch;
}

View File

@ -1,30 +0,0 @@
package com.interplug.qcast.biz.master.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "Api 가대 목록 조회 요청 객체")
public class ApiTrestleRequest {
@Schema(description = "모듈타입코드")
private String moduleTpCd;
@Schema(description = "지붕재코드")
private String roofMatlCd;
@Schema(description = "서까래기초코드")
private String raftBaseCd;
@Schema(description = "가대메이커코드")
private String trestleMkrCd;
@Schema(description = "공법코드")
private String constMthdCd;
@Schema(description = "지붕기초코드")
private String roofBaseCd;
}

View File

@ -1,63 +0,0 @@
package com.interplug.qcast.biz.master.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "Api 가대 목록 조회 응답 객체")
public class ApiTrestleResponse {
@Schema(description = "모듈타입코드")
private String moduleTpCd;
@Schema(description = "모듈타입코드명")
private String moduleTpCdNm;
@Schema(description = "모듈타입코드명(일본)")
private String moduleTpCdJp;
@Schema(description = "지붕재코드")
private String roofMatlCd;
@Schema(description = "지붕재코드명")
private String roofMatlCdNm;
@Schema(description = "지붕재코드명(일본)")
private String roofMatlCdJp;
@Schema(description = "가대메이커코드")
private String trestleMkrCd;
@Schema(description = "가대메이커코드명")
private String trestleMkrCdNm;
@Schema(description = "가대메이커코드명(일본)")
private String trestleMkrCdJp;
@Schema(description = "공법코드")
private String constMthdCd;
@Schema(description = "공법코드명")
private String constMthdCdNm;
@Schema(description = "공법코드명(일본)")
private String constMthdCdJp;
@Schema(description = "지붕기초코드")
private String roofBaseCd;
@Schema(description = "지붕기초코드명")
private String roofBaseCdNm;
@Schema(description = "지붕기초코드명(일본)")
private String roofBaseCdJp;
@Schema(description = "랙 여부")
private String rackYn;
@Schema(description = "순번")
private Integer priority;
}

View File

@ -0,0 +1,50 @@
package com.interplug.qcast.biz.master.dto.construction;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "Api 시공법 목록 조회 요청 객체")
public class ApiConstructionRequest {
@Schema(description = "Language코드")
private String langCd;
@Schema(description = "모듈타입코드")
private String moduleTpCd;
@Schema(description = "지붕재코드")
private String roofMatlCd;
@Schema(description = "가대메이커코드")
private String trestleMkrCd;
@Schema(description = "공법코드")
private String constMthdCd;
@Schema(description = "지붕기초코드")
private String roofBaseCd;
@Schema(description = "면조도")
private String illuminationTp;
@Schema(description = "설치높이")
private String instHt;
@Schema(description = "풍속")
private String stdWindSpeed;
@Schema(description = "적설량")
private String stdSnowLd;
@Schema(description = "경사도코드")
private String inclCd;
@Schema(description = "서까래기초코드")
private String raftBaseCd;
@Schema(description = "하제(망둥어)피치")
private Integer roofPitch;
}

View File

@ -0,0 +1,35 @@
package com.interplug.qcast.biz.master.dto.construction;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "Api 시공법 목록 조회 응답 객체")
public class ApiConstructionResponse {
@Schema(description = "시공법")
private String constTp;
@Schema(description = "시공법명")
private String constTpNm;
@Schema(description = "시공법명(일본)")
private String constTpJp;
@Schema(description = "시공법가능여부")
private String constPossYn;
@Schema(description = "치조가능여부")
private String plvrYn;
@Schema(description = "처마커버설치가능여부")
private String cvrYn;
@Schema(description = "처마커버설치최대단수")
private Integer cvrLmtRow;
@Schema(description = "낙설방지금구설치가능여부")
private String snowGdPossYn;
}

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.moduletype;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.moduletype;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
@ -6,7 +6,7 @@ import lombok.Setter;
@Getter
@Setter
@Schema(description = "제품 요청 데이터")
@Schema(description = "제품 데이터 요청 객체")
public class ApiModuleTpRequest {
@Schema(description = "Language코드")

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.moduletype;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
@ -7,7 +7,7 @@ import lombok.Setter;
@Getter
@Setter
@Schema(description = "제품 데이터")
@Schema(description = "제품 데이터 응답 객체")
public class ApiModuleTpResponse {
@Schema(description = "제품ID")

View File

@ -0,0 +1,35 @@
package com.interplug.qcast.biz.master.dto.pcs.maker;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "PCS 메이커, 시리즈 목록 조회")
public class ApiPcsMakerResponse {
@Schema(description = "PCS메이커코드")
private String pcsMkrCd;
@Schema(description = "PCS메이커코드명")
private String pcsMkrNm;
@Schema(description = "PCS메이커코드명(일본)")
private String pcsMkrNmJp;
@Schema(description = "PCS시리즈멀티선택타입(멀티:MULTI, 단독:SINGLE, 단독(병설):SINGLE-P)")
private String pcsMkrMultiType;
@Schema(description = "PCS시리즈코드")
private String pcsSerCd;
@Schema(description = "PCS시리즈코드명")
private String pcsSerNm;
@Schema(description = "PCS시리즈코드명(일본)")
private String pcsSerNmJp;
@Schema(description = "PCS시리즈 병설 여부")
private String pcsSerParallelYn;
}

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.pcs.series;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
@ -8,7 +8,7 @@ import lombok.Setter;
@Getter
@Setter
@Schema(description = "PCS 시리즈 아이템 목록 조회 요청 객체 모듈아이템")
public class ApiPcsSeriesItemListModuleRequest {
public class ApiPcsSeriesItemModuleRequest {
@Schema(description = "제품ID", maxLength = 20)
@NotNull
public String itemId;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.pcs.series;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
@ -8,7 +8,7 @@ import lombok.Setter;
@Getter
@Setter
@Schema(description = "PCS 시리즈 아이템 목록 조회 요청 객체 PCS시리즈코드")
public class ApiPcsSeriesItemListPcsCodeRequest {
public class ApiPcsSeriesItemPcsCodeRequest {
@Schema(description = "PCS시리즈코드", maxLength = 10)
@NotNull
public String pcsSerCd;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.pcs.series;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
@ -9,16 +9,16 @@ import lombok.Setter;
@Getter
@Setter
@Schema(description = "PCS 시리즈 아이템 목록 조회 요청 객체")
public class ApiPcsSeriesItemListRequest {
public class ApiPcsSeriesItemRequest {
@Schema(description = "PCS메이커코드")
@NotNull
public String pcsMkrCd;
@Schema(description = "PCS시리즈코드 목록")
@NotNull
public List<ApiPcsSeriesItemListPcsCodeRequest> pcsSerList;
public List<ApiPcsSeriesItemPcsCodeRequest> pcsSerList;
@Schema(description = "Module Item ID")
@NotNull
public List<ApiPcsSeriesItemListModuleRequest> moduleItemList;
public List<ApiPcsSeriesItemModuleRequest> moduleItemList;
}

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.pcs.series;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
@ -7,7 +7,7 @@ import lombok.Setter;
@Getter
@Setter
@Schema(description = "PCS 시리즈 아이템 목록 조회 응답 객체")
public class ApiPcsSeriesItemListResponse {
public class ApiPcsSeriesItemResponse {
@Schema(description = "PCS메이커코드")
public String pcsMkrCd;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.quotation;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.quotation;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.quotation;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.quotation;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.quotation;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.roofmaterial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
@ -6,7 +6,7 @@ import lombok.Setter;
@Getter
@Setter
@Schema(description = "지붕재 데이터")
@Schema(description = "지붕재 데이터 응답 객체")
public class ApiRoofMaterialResponse {
@Schema(description = "지붕재코드")

View File

@ -0,0 +1,29 @@
package com.interplug.qcast.biz.master.dto.trestle;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "Api 가대 목록 조회 요청 객체")
public class ApiTrestleRequest {
@Schema(description = "모듈타입코드")
private String moduleTpCd;
@Schema(description = "지붕재코드")
private String roofMatlCd;
@Schema(description = "서까래기초코드")
private String raftBaseCd;
@Schema(description = "가대메이커코드")
private String trestleMkrCd;
@Schema(description = "공법코드")
private String constMthdCd;
@Schema(description = "지붕기초코드")
private String roofBaseCd;
}

View File

@ -0,0 +1,62 @@
package com.interplug.qcast.biz.master.dto.trestle;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "Api 가대 목록 조회 응답 객체")
public class ApiTrestleResponse {
@Schema(description = "모듈타입코드")
private String moduleTpCd;
@Schema(description = "모듈타입코드명")
private String moduleTpCdNm;
@Schema(description = "모듈타입코드명(일본)")
private String moduleTpCdJp;
@Schema(description = "지붕재코드")
private String roofMatlCd;
@Schema(description = "지붕재코드명")
private String roofMatlCdNm;
@Schema(description = "지붕재코드명(일본)")
private String roofMatlCdJp;
@Schema(description = "가대메이커코드")
private String trestleMkrCd;
@Schema(description = "가대메이커코드명")
private String trestleMkrCdNm;
@Schema(description = "가대메이커코드명(일본)")
private String trestleMkrCdJp;
@Schema(description = "공법코드")
private String constMthdCd;
@Schema(description = "공법코드명")
private String constMthdCdNm;
@Schema(description = "공법코드명(일본)")
private String constMthdCdJp;
@Schema(description = "지붕기초코드")
private String roofBaseCd;
@Schema(description = "지붕기초코드명")
private String roofBaseCdNm;
@Schema(description = "지붕기초코드명(일본)")
private String roofBaseCdJp;
@Schema(description = "랙 여부")
private String rackYn;
@Schema(description = "순번")
private Integer priority;
}

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.trestle.detail;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.trestle.detail;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.trestle.detail;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@ -0,0 +1,53 @@
package com.interplug.qcast.biz.master.dto.trestle.detail;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Schema(description = "Api 가대 상세 조회 요청 객체")
public class ApiTrestleDetailRequest {
@Schema(description = "Language코드")
private String langCd;
@Schema(description = "모듈타입코드")
private String moduleTpCd;
@Schema(description = "지붕재코드")
private String roofMatlCd;
@Schema(description = "가대메이커코드")
private String trestleMkrCd;
@Schema(description = "공법코드")
private String constMthdCd;
@Schema(description = "지붕기초코드")
private String roofBaseCd;
@Schema(description = "면조도")
private String illuminationTp;
@Schema(description = "설치높이")
private String instHt;
@Schema(description = "풍속")
private String stdWindSpeed;
@Schema(description = "적설량")
private String stdSnowLd;
@Schema(description = "경사도코드")
private String inclCd;
@Schema(description = "시공법")
private String constTp;
@Schema(description = "혼합모듈번호")
private Integer mixMatlNo;
@Schema(description = "하제(망둥어)피치")
private Integer roofPitch;
}

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.trestle.detail;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.master.dto;
package com.interplug.qcast.biz.master.dto.trestle.detail;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;