We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d1038b + 54eadea commit ed19e2cCopy full SHA for ed19e2c
2 files changed
src/main/java/com/nextroom/nextRoomServer/domain/Banner.java
@@ -30,6 +30,9 @@ public class Banner extends Timestamped {
30
@Column(name = "url")
31
private String url;
32
33
+ @Column(name = "image_url")
34
+ private String imageUrl;
35
+
36
@Column(name = "active", nullable = false)
37
private boolean active;
38
}
src/main/java/com/nextroom/nextRoomServer/dto/BannerDto.java
@@ -2,10 +2,10 @@
2
3
import com.nextroom.nextRoomServer.domain.Banner;
4
5
-public record BannerDto(String description, String url) {
+public record BannerDto(String description, String url, String imageUrl) {
6
7
public static BannerDto toDto(Banner banner) {
8
- return new BannerDto(banner.getDescription(), banner.getUrl());
+ return new BannerDto(banner.getDescription(), banner.getUrl(), banner.getImageUrl());
9
10
11
0 commit comments