-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
149 additions
and
14 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
17 changes: 17 additions & 0 deletions
17
photo-service/src/main/java/kr/mafoo/photo/controller/dto/response/SumoneAlbumResponse.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 kr.mafoo.photo.controller.dto.response; | ||
|
||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import kr.mafoo.photo.domain.AlbumEntity; | ||
|
||
@Schema(description = "앨범 응답") | ||
public record SumoneAlbumResponse( | ||
@Schema(description = "앨범 ID", example = "test_album_id") | ||
String albumId | ||
) { | ||
public static SumoneAlbumResponse fromEntity(AlbumEntity entity) { | ||
return new SumoneAlbumResponse( | ||
entity.getAlbumId() | ||
); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
photo-service/src/main/java/kr/mafoo/photo/controller/dto/response/SumonePhotoResponse.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 kr.mafoo.photo.controller.dto.response; | ||
|
||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import kr.mafoo.photo.domain.PhotoEntity; | ||
|
||
@Schema(description = "앨범 응답") | ||
public record SumonePhotoResponse( | ||
@Schema(description = "사진 URL", example = "photo_url") | ||
String photoUrl | ||
) { | ||
public static SumonePhotoResponse fromEntity(PhotoEntity entity) { | ||
return new SumonePhotoResponse( | ||
entity.getPhotoUrl() | ||
); | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
photo-service/src/main/resources/db/migration/V10__addAlbumTypeIndexInAlbumTable.sql
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 @@ | ||
ALTER TABLE album ADD INDEX idx_album_type (type); |