Skip to content

Commit

Permalink
Fix | #22 | @lcomment | cake shop 엔티티 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lcomment committed May 20, 2024
1 parent 4c2452c commit 2522064
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@

public enum CakeDesignCategory {

FLOWER
THREE_DIMENSIONAL,
CHARACTER,
PHOTO,
LUNCHBOX,
FIGURE,
FLOWER,
LETTERING,
RICE_CAKE,
TIARA,
ETC
}
24 changes: 13 additions & 11 deletions cakk-common/src/main/java/com/cakk/common/enums/Days.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package com.cakk.common.enums;

public enum Days {

MON(0), TUE(1), WED(2), THU(3), FRI(4), SAT(5), SUN(6);
import lombok.Getter;
import lombok.RequiredArgsConstructor;

private Integer code;

private Days(Integer code) {
this.code = code;
}
@Getter
@RequiredArgsConstructor(access = lombok.AccessLevel.PRIVATE)
public enum Days {

public Integer getCode() {
return code;
}
MON(0),
TUE(1),
WED(2),
THU(3),
FRI(4),
SAT(5),
SUN(6);

private final Integer code;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class CakeShop extends AuditEntity {
@Column(name = "shop_id", nullable = false)
private Long id;

@Column(name = "thumbnail_image_url", length = 200)
private String thumbnailImageUrl;

@Column(name = "shop_name", length = 30, nullable = false)
private String shopName;

Expand Down Expand Up @@ -57,8 +60,16 @@ public class CakeShop extends AuditEntity {
private LocalDateTime deletedAt;

@Builder
public CakeShop(String shopName, String shopBio, String shopDescription, Double latitude, Double longitude) {
public CakeShop(
String shopName,
String thumbnailImageUrl,
String shopBio,
String shopDescription,
Double latitude,
Double longitude
) {
this.shopName = shopName;
this.thumbnailImageUrl = thumbnailImageUrl;
this.shopBio = shopBio;
this.shopDescription = shopDescription;
this.latitude = latitude;
Expand Down

0 comments on commit 2522064

Please sign in to comment.