-
Notifications
You must be signed in to change notification settings - Fork 3
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 #186 from ddackkeun/develop
리뷰, 이미지 업로드 코드 리팩터링 및 docker-compose 추가
- Loading branch information
Showing
56 changed files
with
1,774 additions
and
1,485 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
version: '3.8' | ||
|
||
networks: | ||
photosmap-network: | ||
driver: bridge | ||
|
||
services: | ||
db: | ||
image: mysql:8.0.33 | ||
container_name: db | ||
restart: unless-stopped | ||
ports: | ||
- "3306:3306" | ||
networks: | ||
- photosmap-network | ||
volumes: | ||
- ./photosmap/volume/db/etc/mysql/conf.d:/etc/mysql/conf.d | ||
- ./photosmap/volume/db/var/lib/mysql:/var/lib/mysql | ||
- ./photosmap/volume/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d | ||
environment: | ||
- TZ=Asia/Seoul | ||
- MYSQL_DATABASE=photos_map | ||
- MYSQL_ROOT_PASSWORD=root1234 | ||
- MYSQL_USER=user1 | ||
- MYSQL_PASSWORD=1234 | ||
|
||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
args: | ||
PROFILES: dev | ||
image: photosmap:latest | ||
container_name: photosmap | ||
restart: always | ||
ports: | ||
- '8080:8080' | ||
networks: | ||
- photosmap-network | ||
volumes: | ||
- ./photosmap/volume/app:/app | ||
depends_on: | ||
- db | ||
- redis | ||
|
||
redis: | ||
image: redis:alpine | ||
container_name: redis | ||
restart: always | ||
ports: | ||
- '6379:6379' | ||
networks: | ||
- photosmap-network | ||
command: redis-server /usr/local/etc/redis/redis.conf | ||
volumes: | ||
- ./photosmap/volume/redis/data:/data | ||
- ./photosmap/volume/redis/usr/local/etc/redis/redis.conf:/usr/local/etc/redis/redis.conf | ||
- ./photosmap/volume/redis/etc/redis/users.acl:/etc/redis/users.acl | ||
|
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
...ava/com/idea5/four_cut_photos_map/domain/file/dto/response/ImageUploadResultResponse.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.idea5.four_cut_photos_map.domain.file.dto.response; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* 이미지 업로드 결과 응답 객체 | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public class ImageUploadResultResponse { | ||
private List<ImageUploadResponse> successfulUploads; | ||
private List<ImageUploadResponse> failedUploads; | ||
} |
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
24 changes: 24 additions & 0 deletions
24
src/main/java/com/idea5/four_cut_photos_map/domain/member/mapper/MemberMapper.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.idea5.four_cut_photos_map.domain.member.mapper; | ||
|
||
import com.idea5.four_cut_photos_map.domain.member.dto.response.MemberResponse; | ||
import com.idea5.four_cut_photos_map.domain.member.entity.Member; | ||
import com.idea5.four_cut_photos_map.domain.memberTitle.entity.MemberTitle; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class MemberMapper { | ||
public MemberResponse toResponse(Member member) { | ||
return MemberResponse.builder() | ||
.id(member.getId()) | ||
.nickname(member.getNickname()) | ||
.build(); | ||
} | ||
|
||
public MemberResponse toResponse(Member member, String mainMemberTitleName) { | ||
return MemberResponse.builder() | ||
.id(member.getId()) | ||
.nickname(member.getNickname()) | ||
.mainMemberTitle(mainMemberTitleName) | ||
.build(); | ||
} | ||
} |
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.