-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTourApiResponse.java
More file actions
70 lines (64 loc) · 1.76 KB
/
TourApiResponse.java
File metadata and controls
70 lines (64 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package com.catcher.batch.external.vo.response;
import com.catcher.batch.annotation.CatcherJson;
import lombok.Getter;
import java.util.List;
@Getter
@CatcherJson(path = "response.body.items")
public class TourApiResponse {
private List<TourApiItem> item;
// private InnerTourAPiResponse response;
//
// @Getter
// public static class InnerTourAPiResponse {
//
// private TourApiHeader header;
//
// private TourApiBody body;
// }
//
// @Getter
// public static class TourApiHeader {
// private String resultCode;
// private String resultMsg;
// }
//
// @Getter
// public static class TourApiBody {
//
// private TourApiItems items;
// private Integer numOfRows;
// private Integer pageNo;
// private Integer totalCount;
// }
//
// @Getter
// public static class TourApiItems {
// private List<TourApiItem> item;
// }
/* TODO: JsonProperty 어노테이션 이용하여 적당한 변수명으로 바꾸기 */
@Getter
public static class TourApiItem {
private String addr1;
private String addr2;
private String booktour;
private String cat1;
private String cat2;
private String cat3;
private String contentid;
private String contenttypeid;
private String createdtime;
private String eventstartdate;
private String eventenddate;
private String firstimage;
private String firstimage2;
private String cpyrhtDivCd;
private String mapx;
private String mapy;
private String mlevel;
private String modifiedtime;
private String areacode;
private String sigungucode;
private String tel;
private String title;
}
}