260212_01_DOC: 프로젝트 전체에 구글 java 스타일 적용

This commit is contained in:
2026-02-12 11:23:15 +09:00
parent 4948faa28a
commit b07a4389d1
84 changed files with 3176 additions and 2891 deletions

View File

@@ -8,9 +8,12 @@ import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.*;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@@ -19,99 +22,100 @@ import java.time.LocalDateTime;
@AllArgsConstructor
@Schema(description = "프로젝트 정보")
public class ProjectInfoDto {
@NotNull
@Schema(description = "프로젝트 고유 번호")
private Long prjctIdx;
@Size(max = 32)
@NotBlank
@Schema(description = "프로젝트 코드")
private String prjctCd;
@NotNull
@Schema(description = "프로젝트 고유 번호")
private Long prjctIdx;
@NotNull
@Schema(description = "프로젝트 진행 상태")
private ProjectStatus prjctStatus;
@Size(max = 32)
@NotBlank
@Schema(description = "프로젝트 코드")
private String prjctCd;
@Size(max = 128)
@NotBlank
@Schema(description = "프로젝트 명")
private String prjctName;
@NotNull
@Schema(description = "프로젝트 진행 상태")
private ProjectStatus prjctStatus;
@Size(max = 32)
@NotBlank
@Schema(description = "인트라넷 프로젝트 코드")
private String itrntPrjctCd;
@Size(max = 128)
@NotBlank
@Schema(description = "프로젝트 명")
private String prjctName;
@Size(max = 32)
@NotBlank
@Schema(description = "담당 그룹")
private String ownerDept;
@Size(max = 32)
@NotBlank
@Schema(description = "인트라넷 프로젝트 코드")
private String itrntPrjctCd;
@Size(max = 16)
@NotBlank
@Schema(description = "담당 실사")
private String ownerFw;
@Size(max = 32)
@NotBlank
@Schema(description = "담당 그룹")
private String ownerDept;
@NotNull
@Schema(description = "설문지 타입")
private SurveyType surveyTy;
@Size(max = 16)
@NotBlank
@Schema(description = "담당 실사")
private String ownerFw;
@Size(max = 32)
@Schema(description = "내부 설문 시스템 프로젝트 코드")
private String surveyPrjctCd;
@NotNull
@Schema(description = "설문지 타입")
private SurveyType surveyTy;
@Size(max = 128)
@Schema(description = "설문 URL")
private String surveyUrl;
@Size(max = 32)
@Schema(description = "내부 설문 시스템 프로젝트 코드")
private String surveyPrjctCd;
@NotNull
@Schema(description = "면접원 확인사항 여부")
private Boolean ff;
@Size(max = 128)
@Schema(description = "설문 URL")
private String surveyUrl;
@NotNull
@Schema(description = "컨택 시나리오 사용 여부")
private Boolean useContactSenario;
@NotNull
@Schema(description = "면접원 확인사항 여부")
private Boolean ff;
@Schema(description = "컨택 시나리오")
private String contactSenario;
@NotNull
@Schema(description = "컨택 시나리오 사용 여부")
private Boolean useContactSenario;
@Size(max = 32)
@Schema(description = "등록자", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private String regUser;
@Schema(description = "컨택 시나리오")
private String contactSenario;
@Schema(description = "등록일시", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private LocalDateTime regDt;
@Size(max = 32)
@Schema(description = "등록자", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private String regUser;
@Size(max = 32)
@Schema(description = "수정자", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private String modUser;
@Schema(description = "등록일시", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private LocalDateTime regDt;
@Schema(description = "수정일시", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private LocalDateTime modDt;
@Size(max = 32)
@Schema(description = "수정자", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private String modUser;
public static ProjectInfoDto from(TPrjctEntity entity) {
return ProjectInfoDto.builder()
.prjctIdx(entity.getPrjctIdx())
.prjctCd(entity.getPrjctCd())
.prjctStatus(ProjectStatus.fromCode(entity.getPrjctStatus()))
.prjctName(entity.getPrjctNm())
.itrntPrjctCd(entity.getItrntPrjctCd())
.ownerDept(entity.getOwnerDept())
.ownerFw(entity.getOwnerFw())
.surveyTy(SurveyType.fromCode(entity.getSurveyTy()))
.surveyPrjctCd(entity.getSurveyPrjctCd())
.surveyUrl(entity.getSurveyUrl())
.ff(entity.getFf())
.useContactSenario(entity.getUseContactSenario())
.contactSenario(entity.getContactSenario())
.regUser(entity.getRegUser())
.regDt(entity.getRegDt())
.modUser(entity.getModUser())
.modDt(entity.getModDt())
.build();
}
@Schema(description = "수정일시", accessMode = Schema.AccessMode.READ_ONLY)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private LocalDateTime modDt;
public static ProjectInfoDto from(TPrjctEntity entity) {
return ProjectInfoDto.builder()
.prjctIdx(entity.getPrjctIdx())
.prjctCd(entity.getPrjctCd())
.prjctStatus(ProjectStatus.fromCode(entity.getPrjctStatus()))
.prjctName(entity.getPrjctNm())
.itrntPrjctCd(entity.getItrntPrjctCd())
.ownerDept(entity.getOwnerDept())
.ownerFw(entity.getOwnerFw())
.surveyTy(SurveyType.fromCode(entity.getSurveyTy()))
.surveyPrjctCd(entity.getSurveyPrjctCd())
.surveyUrl(entity.getSurveyUrl())
.ff(entity.getFf())
.useContactSenario(entity.getUseContactSenario())
.contactSenario(entity.getContactSenario())
.regUser(entity.getRegUser())
.regDt(entity.getRegDt())
.modUser(entity.getModUser())
.modDt(entity.getModDt())
.build();
}
}