Skip to content

Commit

Permalink
#155 [fix] 상수 --> ENUM 형으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hellozo0 committed Jan 16, 2024
1 parent 67a17ba commit 11266ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
package com.moddy.server.controller.model.dto.request;

import org.springframework.web.multipart.MultipartFile;
import com.moddy.server.domain.hair_model_application.HairLength;
import java.util.List;

import com.moddy.server.domain.prefer_hair_style.HairStyle;
import io.swagger.v3.oas.annotations.media.Schema;

public record ModelApplicationRequest(
@Schema(description = "모델의 현재 머리 기장 예시입니다.", example ="SHORT")
String hairLength,
HairLength hairLength,
@Schema(description = "PreferHaireStyle의 예시 JSON 배열 포맷입니다.", example ="[\"NORMAL_CUT\", \"ALL_COLOR\"]")
List<String> preferHairStyles,
List<HairStyle> preferHairStyles,
@Schema(description = "모델이 원하는 헤어스타일 예시입니다.", example = "안녕하세요 저는 숱을 많이 친 허쉬컷이 하고 싶어요 근데 머리가 곱슬이라 매직도 같이 해야지 이쁘게 될것 같아요. 그리고 머리가 얇아서 그거 감안하고 해야할것 같습니다.")
String hairDetail,
@Schema(description = "HairServiceRecords 의 예시 JSON 배열 포맷입니다.", example = "[{\"hairService\": \"PERM\", \"hairServiceTerm\": \"UNDER_ONE\"}, {\"hairService\": \"BLACK\", \"hairServiceTerm\": \"ABOVE_TWELVE\"}]")
List<ModelHairServiceRequest> hairServiceRecords,
MultipartFile modelImgUrl,
@Schema(description = "모델의 인스타그램 예시입니다.", example ="hizo0")
String instagramId,
MultipartFile applicationCaptureImgUrl
String instagramId
) {
public List<ModelHairServiceRequest> getHairServiceRecords() {
return hairServiceRecords;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.moddy.server.controller.model.dto.request;

import com.moddy.server.domain.hair_service_record.ServiceRecord;
import com.moddy.server.domain.hair_service_record.ServiceRecordTerm;

public record ModelHairServiceRequest(
String hairService,
String hairServiceTerm
ServiceRecord hairService,
ServiceRecordTerm hairServiceTerm
) {
}

0 comments on commit 11266ce

Please sign in to comment.