-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Orange-Co/feature/home
Feat/home: reflect modifications
- Loading branch information
Showing
7 changed files
with
105 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package co.orange.ddanzi.domain; | ||
|
||
import co.orange.ddanzi.global.common.domain.BaseTimeEntity; | ||
import jakarta.persistence.*; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@Table(name = "banners") | ||
@Entity | ||
public class Banner extends BaseTimeEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "banner_id") | ||
private Integer id; | ||
|
||
@Column(name = "img_url") | ||
private String imgUrl; | ||
|
||
@Column(name = "note") | ||
private String note; | ||
|
||
@Column(name = "is_selected", nullable = false) | ||
private Boolean isSelected; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package co.orange.ddanzi.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
public class AddressInfo { | ||
private String recipient; | ||
private String zipCode; | ||
private String address; | ||
private String phone; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/co/orange/ddanzi/dto/order/CheckProductResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package co.orange.ddanzi.dto.order; | ||
|
||
import co.orange.ddanzi.dto.AddressInfo; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
public class CheckProductResponseDto { | ||
private String productName; | ||
private String imgUrl; | ||
private Integer originPrice; | ||
private AddressInfo addressInfo; | ||
private Integer discountPrice; | ||
private Integer charge; | ||
private Integer totalPrice; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/co/orange/ddanzi/repository/BannerRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package co.orange.ddanzi.repository; | ||
|
||
import co.orange.ddanzi.domain.Banner; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface BannerRepository extends JpaRepository<Banner, Integer> { | ||
Banner findByIsSelected(Boolean isSelected); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters