Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat/#8] 알라딘 api 연결, 책 리스트 검색 기능 구현 #14

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(entity) : 알라딘 명세서에 맞춘 entity 일부 수정
silkair committed Dec 1, 2024
commit 66a552a085a8ca202e8d20b98f612344b7aff231
26 changes: 15 additions & 11 deletions src/main/java/com/bookmile/backend/domain/book/entity/Book.java
Original file line number Diff line number Diff line change
@@ -25,33 +25,37 @@ public class Book extends BaseEntity {
@Column(name = "book_id")
private long id;

@OneToMany(mappedBy = "book")
private List<Group> group = new ArrayList<>();
//@OneToMany(mappedBy = "book")
//private List<Group> group = new ArrayList<>();

@OneToMany(mappedBy = "book")
private List<Review> review = new ArrayList<>();
//@OneToMany(mappedBy = "book")
//private List<Review> review = new ArrayList<>();

@Column(nullable = false)
private String bookName;
private String title;

@Column(nullable = false)
private Integer page;

@Column(nullable = false)
private String thumbNail;
private String author;

@Column(nullable = false)
private String publisher;

@Column(nullable = false)
private String description;
private String cover;

@Column(nullable = false)
private String link;

@Column(nullable = false)
private Double rating;
private String description;

@Column
private Integer itemPage = null; //상품 조회하면 업데이트

@Column
private Integer bestSellerRank = null; //상품 조회하면 업데이트

@Column(nullable = false)
private Boolean isDeleted = false;

}
2 changes: 1 addition & 1 deletion src/main/resources/application-private.properties
Original file line number Diff line number Diff line change
@@ -10,5 +10,5 @@ spring.datasource.url=jdbc:mysql://localhost:3307/bookmile?serverTimezone=Asia/S
spring.datasource.username=bookmile
spring.datasource.password=bookmile

aladin.api.base-url=http://www.aladdin.co.kr/ttb/api/ItemSearch.aspx
aladin.api.base-url=http://www.aladdin.co.kr/ttb/api
aladin.api.ttb-key=ttbsilkair0011548001