Skip to content

Commit

Permalink
Feat: board 스토어 리스트 eventMessage, status 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
1223v committed Nov 24, 2023
1 parent 6b04fdd commit 38f4f43
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 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 eventMessage;

//가게 등급
@Column
@Enumerated(EnumType.STRING)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ private StoreDto toSearchStoreDto(Store store) {
.findFirst()
.map(storeImg -> IMG_URL + store.getEngName() + "/" + storeImg.getImgUrl())
.orElse(null))
.eventMessage(store.getEventMessage())
.status(store.isStatus())
.build();
}

Expand All @@ -57,6 +59,8 @@ private StoreDto toStoreDto(Store store) {
.findFirst()
.map(storeImg -> IMG_URL + store.getEngName() + "/" + storeImg.getImgUrl())
.orElse(null))
.eventMessage(store.getEventMessage())
.status(store.isStatus())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ public class StoreDto {
private String name;
private String address;
private String imgUrl;
private String eventMessage;
private boolean status;
}
14 changes: 7 additions & 7 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
spring.datasource.url=jdbc:mysql://localhost:3306/readyvery
#spring.datasource.url=jdbc:mysql://test.readyvery.com:33306/readyvery
spring.datasource.username=root
#spring.datasource.username=ready
spring.datasource.password=12345678
#spring.datasource.password=readyverytestuser23!
#spring.datasource.url=jdbc:mysql://localhost:3306/readyvery
spring.datasource.url=jdbc:mysql://test.readyvery.com:33306/readyvery
#spring.datasource.username=root
spring.datasource.username=ready
#spring.datasource.password=12345678
spring.datasource.password=readyverytestuser23!
spring.jpa.hibernate.ddl-auto=update
spring.jpa.generate-ddl=true
spring.jpa.show-sql=true
Expand All @@ -14,7 +14,7 @@ jwt.access.expiration=86400
jwt.access.cookie=accessToken
jwt.refresh.expiration=604800
jwt.refresh.cookie=refreshToken
jwt.redirect-uri=http://localhost:3000/login
jwt.redirect-uri=http://localhost:3000/
jwt.access.cookie.domain=localhost
jwt.refresh.cookie.domain=localhost
# Kakao
Expand Down

0 comments on commit 38f4f43

Please sign in to comment.