Skip to content

Commit

Permalink
Merge pull request #16 from 1223v/entity
Browse files Browse the repository at this point in the history
Fix: store subName 엔티티 추가
  • Loading branch information
1223v authored Nov 27, 2023
2 parents 355ed7f + 20c8272 commit ea7b73e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/readyvery/readyverydemo/domain/Store.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public class Store extends BaseTimeEntity {
@Column
private String engName;

// 가게 서브 이름
@Column
private String subName;

// 가게 이벤트 메세지
@Column
private String eventMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class CeoInfoRes {

private String name;
private String storeName;
private String subStoreName;
private String address;
private String phone;
private String openTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public CeoInfoRes ceoInfoToCeoInfoRes(CeoInfo ceoInfo) {
return CeoInfoRes.builder()
.name(ceoInfo.getNickName())
.storeName(ceoInfo.getStore().getName())
.subStoreName(ceoInfo.getStore().getSubName())
.address(ceoInfo.getStore().getAddress())
.phone(ceoInfo.getPhone())
.openTime(ceoInfo.getStore().getTime())
Expand Down

0 comments on commit ea7b73e

Please sign in to comment.