-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# spring-boot-starter-datakr | ||
spring boot starter datakr. data.go.kr 공공데이터 스프링부트용 라이브러리 | ||
|
||
## Supported APIs | ||
[국립중앙의료원_국립중앙의료원_전국 병·의원 찾기 서비스 - 병/의원 FullData 내려받기](https://www.data.go.kr/tcs/dss/selectApiDataDetailView.do?publicDataPk=15000736) | ||
|
||
[한국천문연구원_특일 정보 - 공휴일 정보 조회](https://www.data.go.kr/tcs/dss/selectApiDataDetailView.do?publicDataPk=15012690) | ||
|
||
[행정안전부_행정표준코드_법정동코드 - 법정동코드 조회](https://www.data.go.kr/data/15077871/openapi.do?recommendDataYn=Y) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
package herbaccara.datakr.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement | ||
|
||
@JacksonXmlRootElement(localName = "StanReginCd") | ||
data class StanReginCd( | ||
val head: Head, | ||
@field:JacksonXmlElementWrapper(useWrapping = false) val row: List<Row> | ||
) { | ||
data class Head( | ||
val totalCount: Int, | ||
val numOfRows: Int, | ||
val pageNo: Int, | ||
val type: String, | ||
@field:JsonProperty("RESULT") val result: Result | ||
) { | ||
data class Result(val resultCode: String, val resultMsg: String) | ||
} | ||
|
||
data class Row( | ||
/*** | ||
* 지역코드 | ||
*/ | ||
@field:JsonProperty("region_cd") val regionCd: String, | ||
|
||
/*** | ||
* 시도코드 | ||
*/ | ||
@field:JsonProperty("sido_cd") val sidoCd: String, | ||
|
||
/*** | ||
* 시군구코드 | ||
*/ | ||
@field:JsonProperty("sgg_cd") val sggCd: String, | ||
|
||
/*** | ||
* 읍면동코드 | ||
*/ | ||
@field:JsonProperty("umd_cd") val umdCd: String, | ||
|
||
/*** | ||
* 리코드 | ||
*/ | ||
@field:JsonProperty("ri_cd") val riCd: String, | ||
|
||
/*** | ||
* 지역코드_주민 | ||
*/ | ||
@field:JsonProperty("locatjumin_cd") val locatjuminCd: String, | ||
|
||
/*** | ||
* 지역코드_지적 | ||
*/ | ||
@field:JsonProperty("locatjijuk_cd") val locatjijukCd: String, | ||
|
||
/*** | ||
* 지역주소명 | ||
*/ | ||
@field:JsonProperty("locatadd_nm") val locataddNm: String, | ||
|
||
/*** | ||
* 서열 | ||
*/ | ||
@field:JsonProperty("locat_order") val locatOrder: Int, | ||
|
||
/*** | ||
* 지역주소명 | ||
*/ | ||
@field:JsonProperty("locat_rm") val locatRm: String, | ||
|
||
/*** | ||
* 상위지역코드 | ||
*/ | ||
@field:JsonProperty("locathigh_cd") val locathighCd: String, | ||
|
||
/*** | ||
* 최하위지역명 | ||
*/ | ||
@field:JsonProperty("locallow_nm") val locallowNm: String, | ||
|
||
/*** | ||
* 생성일 | ||
*/ | ||
@field:JsonProperty("adpt_de") val adptDe: String | ||
) | ||
} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.