Skip to content

Commit

Permalink
Merge pull request #25 from YAPP-Github/feature/#24
Browse files Browse the repository at this point in the history
feat: QR ์‚ฌ์ง„ ์ €์žฅ API ํ…Œ์ŠคํŠธ์šฉ ์‘๋‹ต ์ถ”๊ฐ€
  • Loading branch information
gmkim20713 authored Jul 13, 2024
2 parents aa74ed6 + 21cad0e commit 154945e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import static kr.mafoo.photo.domain.BrandType.LIFE_FOUR_CUTS;

@RequiredArgsConstructor
@RestController
public class PhotoController implements PhotoApi {
Expand All @@ -31,6 +33,12 @@ public Mono<PhotoResponse> createPhoto(
String memberId,
PhotoCreateRequest request
){

// HACK : ํ”„์—” ์‘๊ธ‰ ์š”์ฒญ์œผ๋กœ ๋”๋ฏธ ์‘๋‹ต ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค. - ์ถ”ํ›„ ์‚ญ์ œ ์˜ˆ์ •
if (request.qrUrl().equals("https://mafoo.kr/")) {
return Mono.just(new PhotoResponse("id", "https://kr.object.ncloudstorage.com/mafoo//24c576bc-60b0-4e43-af9a-0c3311b97f35", LIFE_FOUR_CUTS, null));
}

return photoService
.createNewPhoto(request.qrUrl(), memberId)
.map(PhotoResponse::fromEntity);
Expand Down

0 comments on commit 154945e

Please sign in to comment.