-
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 #191 from Genti2024/dev
Dev
- Loading branch information
Showing
5 changed files
with
32 additions
and
7 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
23 changes: 23 additions & 0 deletions
23
...api/src/main/java/com/gt/genti/responseexample/dto/response/ExampleWithSquarePicture.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,23 @@ | ||
package com.gt.genti.responseexample.dto.response; | ||
|
||
import com.gt.genti.aws.AwsUtils; | ||
import com.gt.genti.picture.responseexample.model.ResponseExample; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Schema(name = "[ResponseExample][Admin&User] 사진 생성뷰1에서의 예시 사진 응답 dto") | ||
@Getter | ||
@NoArgsConstructor | ||
public class ExampleWithSquarePicture { | ||
@Schema(description = "해당 사진의 Url", example = "https://**") | ||
String url; | ||
|
||
@Schema(description = "에시 프롬프트", example = "벚꽃길에서 벤치에 앉아있어요") | ||
String prompt; | ||
|
||
public ExampleWithSquarePicture(ResponseExample responseExample) { | ||
this.url = AwsUtils.CLOUDFRONT_BASEURL + "/" + responseExample.getKey(); | ||
this.prompt = responseExample.getExamplePrompt(); | ||
} | ||
} |
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