-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from 9oormthonUniv-seoultech/develop
Develop to Main 3
- Loading branch information
Showing
111 changed files
with
1,858 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
core/src/main/java/com/pocket/core/config/QueryDslConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.pocket.core.config; | ||
|
||
import com.querydsl.jpa.impl.JPAQueryFactory; | ||
import jakarta.persistence.EntityManager; | ||
import jakarta.persistence.PersistenceContext; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class QueryDslConfig { | ||
|
||
@PersistenceContext | ||
private EntityManager entityManager; | ||
|
||
@Bean | ||
public JPAQueryFactory jpaQueryFactory() { | ||
return new JPAQueryFactory(entityManager); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
core/src/main/java/com/pocket/core/exception/review/ReviewCustomException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.pocket.core.exception.review; | ||
|
||
|
||
import lombok.Getter; | ||
import org.springframework.http.HttpStatus; | ||
import org.springframework.web.bind.annotation.ResponseStatus; | ||
|
||
@Getter | ||
@ResponseStatus(HttpStatus.BAD_REQUEST) | ||
public class ReviewCustomException extends RuntimeException { | ||
|
||
private final ReviewErrorCode errorCode; | ||
|
||
public ReviewCustomException(ReviewErrorCode errorCode) { | ||
this.errorCode = errorCode; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
core/src/main/java/com/pocket/core/exception/review/ReviewErrorCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.pocket.core.exception.review; | ||
|
||
import com.pocket.core.exception.common.ApiResponse; | ||
import com.pocket.core.exception.common.BaseErrorCode; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import org.springframework.http.HttpStatus; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum ReviewErrorCode implements BaseErrorCode { | ||
PHOTO_FEATURE_NOT_FOUND(HttpStatus.BAD_REQUEST, "400","해당 설명에 맞는 PhotoFeature가 없습니다"), | ||
BOOTH_FEATURE_NOT_FOUND(HttpStatus.BAD_REQUEST, "400","해당 설명에 맞는 BoothFeature가 없습니다"); | ||
|
||
|
||
private final HttpStatus httpStatus; | ||
private final String code; | ||
private final String message; | ||
|
||
@Override | ||
public ApiResponse<Void> getErrorResponse() { | ||
return ApiResponse.onFailure(code, message); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
core/src/main/java/com/pocket/core/image/dto/PresignedUrlRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.pocket.core.image.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
@Schema(description = "프리사인드 URL 요청 DTO") | ||
public class PresignedUrlRequest { | ||
|
||
private final String prefix; | ||
|
||
private final String fileName; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
domain/src/main/java/com/pocket/domain/dto/album/AlbumRegisterResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.pocket.domain.dto.album; | ||
|
||
import java.util.List; | ||
|
||
public record AlbumRegisterResponseDto( | ||
Long photoboothId, | ||
String year, | ||
String month, | ||
String date, | ||
List<String> hashtag, | ||
String memo, | ||
String filePath | ||
) { | ||
|
||
} |
7 changes: 6 additions & 1 deletion
7
domain/src/main/java/com/pocket/domain/dto/photobooth/NearPhotoBoothInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
package com.pocket.domain.dto.photobooth; | ||
|
||
import com.pocket.domain.entity.photobooth.PhotoBoothBrand; | ||
|
||
public record NearPhotoBoothInfo( | ||
Long id, | ||
String name | ||
String name, | ||
PhotoBoothBrand brand, | ||
double x, | ||
double y | ||
) { | ||
} |
7 changes: 7 additions & 0 deletions
7
domain/src/main/java/com/pocket/domain/dto/review/BoothFeatureCountDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.pocket.domain.dto.review; | ||
|
||
public record BoothFeatureCountDto( | ||
String featureName, | ||
Long count | ||
) { | ||
} |
8 changes: 8 additions & 0 deletions
8
domain/src/main/java/com/pocket/domain/dto/review/BoothFeatureDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.pocket.domain.dto.review; | ||
|
||
public record BoothFeatureDto( | ||
Long id, | ||
String featureName | ||
) { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
domain/src/main/java/com/pocket/domain/dto/review/PhotoFeatureCountDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.pocket.domain.dto.review; | ||
|
||
public record PhotoFeatureCountDto( | ||
String featureName, | ||
Long count | ||
) { | ||
} |
7 changes: 7 additions & 0 deletions
7
domain/src/main/java/com/pocket/domain/dto/review/PhotoFeatureDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.pocket.domain.dto.review; | ||
|
||
public record PhotoFeatureDto( | ||
Long id, | ||
String featureName | ||
) { | ||
} |
9 changes: 9 additions & 0 deletions
9
domain/src/main/java/com/pocket/domain/dto/review/ReviewGet6ImagesResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.pocket.domain.dto.review; | ||
|
||
import java.util.List; | ||
|
||
public record ReviewGet6ImagesResponseDto( | ||
List<String> filePaths, | ||
int totalImageCount | ||
) { | ||
} |
9 changes: 9 additions & 0 deletions
9
domain/src/main/java/com/pocket/domain/dto/review/ReviewGetRecentResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.pocket.domain.dto.review; | ||
|
||
import java.util.List; | ||
|
||
public record ReviewGetRecentResponseDto( | ||
int reviewCount, | ||
List<ReviewPreviewDto> reviews | ||
) { | ||
} |
17 changes: 17 additions & 0 deletions
17
domain/src/main/java/com/pocket/domain/dto/review/ReviewPreviewDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.pocket.domain.dto.review; | ||
|
||
import java.util.List; | ||
|
||
public record ReviewPreviewDto( | ||
Long photoboothId, | ||
String name, | ||
String year, | ||
String month, | ||
String date, | ||
String contents, | ||
List<String> features, | ||
String imageUrl, | ||
int imageCount | ||
) { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
domain/src/main/java/com/pocket/domain/dto/review/ReviewRegisterRequestDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.pocket.domain.dto.review; | ||
|
||
import java.util.List; | ||
|
||
public record ReviewRegisterRequestDto( | ||
Long photoboothId, | ||
int rating, | ||
List<Long> boothFeatures, | ||
List<Long> photoFeatures, | ||
List<String> filePaths, | ||
String content | ||
) { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
domain/src/main/java/com/pocket/domain/dto/review/ReviewRegisterResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.pocket.domain.dto.review; | ||
|
||
import java.util.List; | ||
|
||
public record ReviewRegisterResponseDto( | ||
Long photoboothId, | ||
int rating, | ||
List<String> boothFeatures, | ||
List<String> photoFeatures, | ||
List<String> filePaths, | ||
String content | ||
) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.