Skip to content

Commit a9ffd4f

Browse files
committed
[BOOK-79] feat: apis - 알라딘 도서검색, 도서상세검색 외부 API Response 정의 (#15)
1 parent 3148203 commit a9ffd4f

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
package org.yapp.infra.external.aladin.response
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty
4+
5+
data class BookItem internal constructor(
6+
@JsonProperty("title") val title: String?,
7+
@JsonProperty("link") val link: String?,
8+
@JsonProperty("author") val author: String?,
9+
@JsonProperty("pubDate") val pubDate: String?,
10+
@JsonProperty("description") val description: String?,
11+
@JsonProperty("isbn") val isbn: String?,
12+
@JsonProperty("isbn13") val isbn13: String?,
13+
@JsonProperty("itemId") val itemId: Long?,
14+
@JsonProperty("priceSales") val priceSales: Double?,
15+
@JsonProperty("priceStandard") val priceStandard: Double?,
16+
@JsonProperty("mallType") val mallType: String?,
17+
@JsonProperty("stockStatus") val stockStatus: String? = null,
18+
@JsonProperty("mileage") val mileage: Int?,
19+
@JsonProperty("cover") val cover: String?,
20+
@JsonProperty("categoryId") val categoryId: Int?,
21+
@JsonProperty("categoryName") val categoryName: String?,
22+
@JsonProperty("publisher") val publisher: String?
23+
)
24+
25+
data class AladinSearchResponse internal constructor(
26+
@JsonProperty("version") val version: String?,
27+
@JsonProperty("title") val title: String?,
28+
@JsonProperty("link") val link: String?,
29+
@JsonProperty("pubDate") val pubDate: String?,
30+
@JsonProperty("totalResults") val totalResults: Int?,
31+
@JsonProperty("startIndex") val startIndex: Int?,
32+
@JsonProperty("itemsPerPage") val itemsPerPage: Int?,
33+
@JsonProperty("query") val query: String? = null,
34+
@JsonProperty("searchCategoryId") val searchCategoryId: Int? = null,
35+
@JsonProperty("searchCategoryName") val searchCategoryName: String? = null,
36+
@JsonProperty("item") val item: List<BookItem>? = null
37+
)
38+
39+
data class AladinBookDetailResponse(
40+
@JsonProperty("version") val version: String?,
41+
@JsonProperty("title") val title: String?,
42+
@JsonProperty("link") val link: String?,
43+
@JsonProperty("pubDate") val pubDate: String?,
44+
@JsonProperty("totalResults") val totalResults: Int?,
45+
@JsonProperty("startIndex") val startIndex: Int?,
46+
@JsonProperty("itemsPerPage") val itemsPerPage: Int?,
47+
@JsonProperty("query") val query: String? = null,
48+
@JsonProperty("searchCategoryId") val searchCategoryId: Int? = null,
49+
@JsonProperty("searchCategoryName") val searchCategoryName: String? = null,
50+
@JsonProperty("item") val item: List<BookItem>? = null
51+
)

0 commit comments

Comments
 (0)