Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] IngredientResponse dto 수정 및 merge 오류 수정 #90

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions src/main/java/umc/IRECIPE_Server/dto/IngredientResponse.java
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ public class IngredientResponse {
@NoArgsConstructor
@AllArgsConstructor
public static class addResultDTO{
@Schema(description = "재료 아이디", defaultValue = "1")
@Schema(description = "재료 아이디")
Long ingredientId;
@Schema(description = "재료 생성일시")
LocalDateTime createdAt;
@@ -33,19 +33,19 @@ public static class addResultDTO{
@NoArgsConstructor
@AllArgsConstructor
public static class findOneResultDTO{
@Schema(description = "재료 아이디", defaultValue = "1")
@Schema(description = "재료 아이디")
Long ingredientId;
@Schema(description = "재료 이름", defaultValue = "소고기")
@Schema(description = "재료 이름")
String name;
@Schema(description = "재료 카테고리", defaultValue = "MEAT")
IngredientCategory category;
@Schema(description = "재료 메모", defaultValue = "빨리 먹어야 함")
@Schema(description = "재료 메모")
String memo;
@Schema(description = "재료 보관방법", defaultValue = "FROZEN")
Type type;
@Schema(description = "재료 유통기한", defaultValue = "2025-02-09")
@Schema(description = "재료 유통기한")
LocalDate expiryDate;
@Schema(description = "유통기한까지 남은 일 수", defaultValue = "10")
@Schema(description = "유통기한까지 남은 일 수")
Integer remainingDays;
}

@@ -55,7 +55,7 @@ public static class findOneResultDTO{
@NoArgsConstructor
@AllArgsConstructor
public static class updateResultDTO{
@Schema(description = "재료 아이디", defaultValue = "1")
@Schema(description = "재료 아이디")
Long ingredientId;
@Schema(description = "수정 일시")
LocalDateTime updatedAt;
@@ -77,19 +77,19 @@ public static class deleteResultDTO{
@NoArgsConstructor
@AllArgsConstructor
public static class findIngredientResultDTO{
@Schema(description = "재료 아이디", defaultValue = "1")
@Schema(description = "재료 아이디")
Long ingredientId;
@Schema(description = "재료 이름", defaultValue = "소고기")
@Schema(description = "재료 이름")
String name;
@Schema(description = "재료 카테고리", defaultValue = "MEAT")
IngredientCategory category;
@Schema(description = "재료 메모", defaultValue = "빨리 먹어야 함")
@Schema(description = "재료 메모")
String memo;
@Schema(description = "재료 보관방법", defaultValue = "FROZEN")
Type type;
@Schema(description = "재료 유통기한", defaultValue = "2025-02-09")
@Schema(description = "재료 유통기한")
LocalDate expiryDate;
@Schema(description = "유통기한까지 남은 일 수", defaultValue = "10")
@Schema(description = "유통기한까지 남은 일 수")
Integer remainingDays;
}

@@ -100,16 +100,16 @@ public static class findIngredientResultDTO{
@AllArgsConstructor
public static class findAllResultListDTO{
@Schema(description = "게시글 리스트")
List<PostResponseDTO.getRankedPostDTO> postList;
@Schema(description = "리스트 사이즈", defaultValue = "1")
List<IngredientResponse.findIngredientResultDTO> ingredientList;
@Schema(description = "리스트 사이즈")
Integer listSize;
@Schema(description = "전체 페이지 갯수", defaultValue = "1")
@Schema(description = "전체 페이지 갯수")
Integer totalPage;
@Schema(description = "전체 데이터 갯수", defaultValue = "10")
@Schema(description = "전체 데이터 갯수")
Long totalElements;
@Schema(description = "첫 페이지면 true", defaultValue = "true")
@Schema(description = "첫 페이지면 true")
Boolean isFirst;
@Schema(description = " 마지막 페이지면 true", defaultValue = "true")
@Schema(description = " 마지막 페이지면 true")
Boolean isLast;
}

Original file line number Diff line number Diff line change
@@ -223,15 +223,15 @@ public static class getRankedPostDTO {
public static class findAllResultListDTO{
@Schema(description = "게시글 리스트")
List<PostResponseDTO.getRankedPostDTO> postList;
@Schema(description = "리스트 사이즈", defaultValue = "1")
@Schema(description = "리스트 사이즈")
Integer listSize;
@Schema(description = "전체 페이지 갯수", defaultValue = "1")
@Schema(description = "전체 페이지 갯수")
Integer totalPage;
@Schema(description = "전체 데이터 갯수", defaultValue = "10")
@Schema(description = "전체 데이터 갯수")
Long totalElements;
@Schema(description = "첫 페이지면 true", defaultValue = "true")
@Schema(description = "첫 페이지면 true")
Boolean isFirst;
@Schema(description = " 마지막 페이지면 true", defaultValue = "true")
@Schema(description = " 마지막 페이지면 true")
Boolean isLast;
}
}