Skip to content

Commit

Permalink
♻️Refactor: 가볼만한 곳 반환 데이터 컬럼 추가
Browse files Browse the repository at this point in the history
♻️Refactor: 가볼만한 곳 반환 데이터 컬럼 추가
  • Loading branch information
MeongW authored Oct 17, 2024
2 parents a610e95 + 19b6698 commit cf75449
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,17 @@ public class HotspotInfoDto {
@Schema(description = "장소 소개",example = "경치가 아름다운 곳")
private String subTitle;

@Schema(description = "장소 페이지",example = "http://www.address.com")
private String spotURL;

public static HotspotInfoDto from(Hotspot hotspot){
HotspotInfoDto hotspotInfoDto = new HotspotInfoDto();
hotspotInfoDto.setTitle(hotspot.getTitle());
hotspotInfoDto.setAddress(hotspot.getAddress());
hotspotInfoDto.setImage(hotspot.getImage());
hotspotInfoDto.setPhone_num(hotspot.getPhone_num());
hotspotInfoDto.setSubTitle(hotspot.getSubTitle());
hotspotInfoDto.setSpotURL(hotspot.getSpotURL());

return hotspotInfoDto;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
@OpenAPIDefinition(
info = @Info(title = "Nuclear", description = "원자력발전소 공모전", version = "v1"),
servers = {
@Server(url = "https://dev.smartcheers.site", description = "서버 URL"),
@Server(url = "https://api.smartcheers.site", description = "prod 서버 URL"),
@Server(url = "https://dev.smartcheers.site", description = "dev 서버 URL"),
@Server(url = "http://localhost:8080", description = "로컬 URL")

}
Expand Down

0 comments on commit cf75449

Please sign in to comment.